Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp1479951pxv; Fri, 2 Jul 2021 05:01:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeHP55lCbT3NaB5kfiEz4oYZ93CIm4+QEAocEcuGLwXt6FtLvwbDyiG29pQGj5o3D8rFt1 X-Received: by 2002:a17:907:6fd:: with SMTP id yh29mr5010462ejb.432.1625227301962; Fri, 02 Jul 2021 05:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625227301; cv=none; d=google.com; s=arc-20160816; b=LFJF3R0WVs47vPLwNtjHEQR4MXeCbW55vQrq0uwu29AUElo+lEgJbv9841njV+dtsT NS/Jk59XnxgoF5sH08KKy4PRLwjHJk1AGFhbfSr4+KkZIIpE998b4MCSuh9jAEF1WDsI R6JNnw0JeNvu1WwJf0k4j7/Ac8iCv9kL6hcopq/10wHkwR9zRw4k0JZ2POE3hjCrBAWr LOC39V+M/9FdshPhV+pJ9uLiaZZsHa5I/bI5ldIzqyz6P275bMxDEPwQ0KezxAb1NEe1 BP1Cs6LkEOugipXENKzU3juMXS4RE0zoYXpjvtDTlKj2/wY4ni846l7R7A9ho6FgyKz0 +YuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QlWcY3fADqOolPhUTAVl3xjBQhVgUaPUv3eRI605fS0=; b=g06rocN5vDV4POUJ1PB3PmyeT6dkcbMPgkZPaKJ8mirXyKs+KSswn0HqADzrsZOnva mAsb62r0XIvlMD4oujjFyeHbSq9IjVy5mB3vKGDhpNkP/LXuH57r00SMyLw/ponoJ1gA qfqhwfNTyKyscPpGlStNEYb7diLHMFxTXqgYrHa14V6P9Ax/23qTwCgR2OpXeH25BrUk UVhgziV4hboScGtdAO/AREkjCCEVY/46+plLWeLbqx48TdDo7soqjurjUUsdaUa9LaOw /SevsMoksw34VdHWKiQTsGhjf4fJ4ZEtgoRZlaTAOwUIFz7GX0IO1Lj4ZGNvvVe5XPEv zUAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DwP+PEkt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a6si2990151ejc.745.2021.07.02.05.01.07; Fri, 02 Jul 2021 05:01:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DwP+PEkt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231981AbhGBMCS (ORCPT + 99 others); Fri, 2 Jul 2021 08:02:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:54192 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231912AbhGBMCR (ORCPT ); Fri, 2 Jul 2021 08:02:17 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8F3EC6141D for ; Fri, 2 Jul 2021 11:59:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625227185; bh=8rtNsvaI1RHggmsZdI3pAW+DctsXAHwCkT27YexpT/A=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=DwP+PEktSgVq7gQ0gXyZW4ifnc/xeGi9nAVp5X0zWMubqTIyzWtFT6n4sgqIEIP1M LWBgndsYwMal8kuvn3fyKB5ShJAglxOMh0VT632WFbb0We9OG5rgv/7VEeL64wgYCl /llI6RMuBW9opalCMOY2/6fHgGQb8VUN6zN+g+pm6+exbIDT9QD/MJqpFC6kK5afSS G0pM5SS0fV5qsljOgu8ZuO0zARQeH9yitr5bsuMvMLBc4D6bWUVzSEYavI/YBjfSE1 af/5NUaJwNR784XPVrBWqMOL1cJWfBcwZcC2kpddEl0sNRGgrzjdR9u+u28QYEikkw Zt9GYMFLLvcNQ== Received: by mail-wm1-f43.google.com with SMTP id b14-20020a1c1b0e0000b02901fc3a62af78so2339574wmb.3 for ; Fri, 02 Jul 2021 04:59:45 -0700 (PDT) X-Gm-Message-State: AOAM5315k7saPUjjXEKkQ0V4yEKD6OniIzTCRFA2zaQG4I4QlKwuK0xw WKMsIG6gByELBzPdX2Te5Krs+BrREku1JkiLTnM= X-Received: by 2002:a05:600c:3205:: with SMTP id r5mr6678910wmp.75.1625227184199; Fri, 02 Jul 2021 04:59:44 -0700 (PDT) MIME-Version: 1.0 References: <20210701235505.1792711-1-ndesaulniers@google.com> In-Reply-To: <20210701235505.1792711-1-ndesaulniers@google.com> From: Arnd Bergmann Date: Fri, 2 Jul 2021 13:59:28 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] arm64: drop CROSS_COMPILE for LLVM=1 LLVM_IAS=1 To: Nick Desaulniers Cc: Catalin Marinas , Will Deacon , Masahiro Yamada , Fangrui Song , Nathan Chancellor , Linux ARM , Linux Kernel Mailing List , clang-built-linux Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 2, 2021 at 1:55 AM 'Nick Desaulniers' via Clang Built Linux wrote: > > +ifneq ($(LLVM),) > +ifneq ($(LLVM_IAS),) > +ifeq ($(CROSS_COMPILE),) > +CLANG_TARGET :=--target=aarch64-linux > +CLANG_FLAGS += $(CLANG_TARGET) > +KBUILD_CFLAGS += $(CLANG_TARGET) > +KBUILD_AFLAGS += $(CLANG_TARGET) > +endif > +endif > +endif I think only the "CLANG_TARGET :=--target=aarch64-linux" line should go into the per-architecture Makefile. It doesn't hurt to just set that unconditionally here, and then change the CLANG_FLAGS logic in the top-level Makefile to use this in place of $(notdir $(CROSS_COMPILE:%-=%)). Arnd