Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp979174pxb; Wed, 3 Mar 2021 23:18:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwy506/GSgiDYWY3GPpP/0L+UxPq6hEKJZtISHZd4vynrkcWCpWL45ncBfTCBSHXKKWqxH X-Received: by 2002:a50:d302:: with SMTP id g2mr2813629edh.75.1614842314451; Wed, 03 Mar 2021 23:18:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614842314; cv=none; d=google.com; s=arc-20160816; b=xRMSb1pCywtRid9RxCC1w6iP0njIABS45d/HD4MZzQR9zKcGFQfZdIOHgR2DCtmIO8 Hh+VjdVjCXWeLQ7KdRfWYmje1AaWaIQ9Fbm68WMs9tNlQsyXnxId17KRQJZE0yrDjSDN UIq7LAXl9cqENJhZKjp6xUZ8Ec8VC1Vs+k6M0Fn62RA1tnYFQPSMMYwkbXP44p9+/6ZS hME8FoAfqssUDZGqWrzpeyH2PzaVI/HJ8xzbZP8HiiEnX7zjZ/ViwzSm7X6/Rl1Rc/WP yMVqrflpc3eXDsTqcO493WPGTiwvdnX+kkZrJlZU4GBaH1wBUlyIqsPj4azGajxXHf8h 8T6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=vo2J44iFKVpnse0aOlpLByiHo9ULd/yOy/Rb2ly8egg=; b=etqW4oCTOaT0i9qqLkHMMcLba+EyPEK3nvfl+sgEuwYNOMYbI2ynHWpZd6+LhrGQzP vIAmjgJVfH/V5qXxN0Tey0O73Y+JOubRyT/QW3N9XZOOSEA4QOr9dK4Rw6jnWJV/Xhuh K354b+dTwLBIIEzQA2Jnj+2viDVWGpFB9QCQw3RGXwyi8ewoqA3FVDyFeZ0e9RnGI4to zc7ataKQyDq6V64M1tNbQk+WJDEFA18w+3R7QXCn2N6jTkoJi56HygsD0IFVPieekQHg IfJ8AR9xmE1iSDiRCFRZkwwhHlPjWKlHRPXEezo1gcGXkxIx5MFlRWuEiFO7VGXCGvX0 BkVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=i+BkJxO3; 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 c5si17045146edk.64.2021.03.03.23.18.11; Wed, 03 Mar 2021 23:18:34 -0800 (PST) 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=i+BkJxO3; 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 S2360394AbhCBWUD (ORCPT + 99 others); Tue, 2 Mar 2021 17:20:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:36498 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1448115AbhCBVHr (ORCPT ); Tue, 2 Mar 2021 16:07:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 34B22614A7; Tue, 2 Mar 2021 21:07:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614719224; bh=DdFnIPNTmxwN8O44F3irsSvtEMs7VhI1V96hjPIjYec=; h=From:To:Cc:Subject:Date:From; b=i+BkJxO3Tdc3A3D8mOULNhtLfyRXzgDbtlEQDD16pca/FZnRaWAJ60CWRq109pP1s 0dEgeH2Co0Sb0WoTwTOb8wkOJ4RE6YjzxM8MfUKCRt5aF2xC9T39nrQGhU6U2T0VHL dI2Wdovll3gqdQVJGck6DSL7mbiftK7uJUQn5N+sM5yoqR3AZ8R1auc56j+iseV4MA JSvGKO40C3GQZMKHtKvT9WVoaOW2aErIYpafF93DdQySuc0nCZtPMCF4kbZQrNpX+p /uvYkuBtLLWXNUggVnfq6cV/0/xDtnsComS0AZ+lKPu/KUv8xdBp1Qo/8CXMJIiQLI xwdiGEQYs7oDw== From: Nathan Chancellor To: Masahiro Yamada , Michal Marek , Nick Desaulniers Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Nathan Chancellor Subject: [PATCH 1/2] Makefile: Remove '--gcc-toolchain' flag Date: Tue, 2 Mar 2021 14:06:45 -0700 Message-Id: <20210302210646.3044738-1-nathan@kernel.org> X-Mailer: git-send-email 2.31.0.rc0.75.gec125d1bc1 MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is not necessary anymore now that we specify '--prefix=', which tells clang exactly where to find the GNU cross tools. This has been verified with self compiled LLVM 10.0.1 and LLVM 13.0.0 as well as a distribution version of LLVM 11.1.0 without binutils in the LLVM toolchain locations. Signed-off-by: Nathan Chancellor --- Makefile | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Makefile b/Makefile index f9b54da2fca0..c20f0ad8be73 100644 --- a/Makefile +++ b/Makefile @@ -568,10 +568,6 @@ ifneq ($(CROSS_COMPILE),) CLANG_FLAGS += --target=$(notdir $(CROSS_COMPILE:%-=%)) GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)elfedit)) CLANG_FLAGS += --prefix=$(GCC_TOOLCHAIN_DIR)$(notdir $(CROSS_COMPILE)) -GCC_TOOLCHAIN := $(realpath $(GCC_TOOLCHAIN_DIR)/..) -endif -ifneq ($(GCC_TOOLCHAIN),) -CLANG_FLAGS += --gcc-toolchain=$(GCC_TOOLCHAIN) endif ifneq ($(LLVM_IAS),1) CLANG_FLAGS += -no-integrated-as base-commit: 7a7fd0de4a9804299793e564a555a49c1fc924cb -- 2.31.0.rc0.75.gec125d1bc1