Re: [PATCH 1/3] tools build feature: Use CC and CXX from parent

2020-07-28 Thread Arnaldo Carvalho de Melo
Em Tue, Jul 28, 2020 at 04:42:02PM +0200, Jiri Olsa escreveu: > On Sun, Jul 26, 2020 at 09:08:14PM -0700, Thomas Hebb wrote: > > commit c8c188679ccf ("tools build: Use the same CC for feature detection > > and actual build") changed these assignments from unconditional (:=) to > > conditional (?=)

Re: [PATCH 1/3] tools build feature: Use CC and CXX from parent

2020-07-28 Thread Jiri Olsa
On Sun, Jul 26, 2020 at 09:08:14PM -0700, Thomas Hebb wrote: > commit c8c188679ccf ("tools build: Use the same CC for feature detection > and actual build") changed these assignments from unconditional (:=) to > conditional (?=) so that they wouldn't clobber values from the > environment. However,

[PATCH 1/3] tools build feature: Use CC and CXX from parent

2020-07-26 Thread Thomas Hebb
commit c8c188679ccf ("tools build: Use the same CC for feature detection and actual build") changed these assignments from unconditional (:=) to conditional (?=) so that they wouldn't clobber values from the environment. However, conditional assignment does not work properly for variables that