Return-Path: Received: from heliosphere.sirena.org.uk ([172.104.155.198]:57004 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725822AbfHLRPD (ORCPT ); Mon, 12 Aug 2019 13:15:03 -0400 Date: Mon, 12 Aug 2019 18:14:44 +0100 From: Mark Brown Subject: Re: [PATCH RFC 1/1] kbuild: enable overriding the compiler using the environment Message-ID: <20190812171444.GL4592@sirena.co.uk> References: <3885ccdcbdbe83eb367e8344584df944adc76e34.1565297255.git.guillaume.tucker@collabora.com> <20190809051552.GA44466@archlinux-threadripper> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TnYVF1hk1c8rpHiF" Content-Disposition: inline In-Reply-To: Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Masahiro Yamada Cc: Nathan Chancellor , Nick Desaulniers , Guillaume Tucker , Michal Marek , Guenter Roeck , clang-built-linux , Linux Kbuild mailing list , kernel@collabora.com --TnYVF1hk1c8rpHiF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 13, 2019 at 01:37:14AM +0900, Masahiro Yamada wrote: > On Fri, Aug 9, 2019 at 2:15 PM Nathan Chancellor > > This is problematic because there is no way for CC, HOSTCC, and HOSTCXX > > to be passed to make within scripts/kconfig/merge_config.sh. > Is it so problematic? > If you start from make, CC=3Dclang and HOSTCC=3Dclang are propagated to s= ub-make > even via shell scripts such as merge_config.sh > Only the problem I see is the situation where > a user directly runs scripts/kconfig/merge_config.sh > without using make as a start-point. This is really a very common thing for testing infrastructure to do, it'll combine a base defconfig with a fragment enabling extra stuff either to directly cover that extra stuff or to ensure that configuration options needed for testsuites get turned on. =20 > A user can wrap merge_config.sh with a simple Makefile > if they want to override CC, HOSTCC, etc. If we want to do that it seems sensible to provide that Makefile upstream so there's a standard thing, it might also help people notice that they need to do this and avoid getting surprised. --TnYVF1hk1c8rpHiF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl1RnoQACgkQJNaLcl1U h9AI0gf9HZ4+J2ZsyQX3ztFSIxR8D3kUiBnX52C6bGhvl4wjFmpM1b98dE4n5Ks2 a3gxDjMkFwBQX44p8he+xeV/UTqLgmOAJ9d3FuIpd+x1q3m8w6z95c5Icrgzc4Wh ubsv3kqC34c70HZ1tuQIusrUyHNLBIsgp8dlvfDQdrOY7qS+VLaPPiFCdVYQI0g6 UEChNPLMspP/rlEvshD0x34SnTMGYNdrLK2hXNhoOlgtgu5+KEy4rFUb6mALWL2x 1LWKLnY1lZlxMs1lfLmcFzGHvZoCmfAX+/F7YtpclnovOTk1euRw0BmzCYt7S5Wv 8O51Orz7UWvcpyQDPMiiUXjcT5kLrQ== =6R2x -----END PGP SIGNATURE----- --TnYVF1hk1c8rpHiF--