Re: [PATCH] selftests: propagate CC to selftest submakes

2020-12-11 Thread Andrew Delgadillo
On Thu, Dec 10, 2020 at 4:31 PM Shuah Khan wrote: > > On 12/10/20 5:10 PM, Andrew Delgadillo wrote: > > On Thu, Dec 10, 2020 at 3:08 PM Nick Desaulniers > > wrote: > >> > >> On Thu, Dec 3, 2020 at 2:10 PM Andrew Delgadillo wrote: > >>> > >>> lib.mk defaults to gcc when CC is not set. When

Re: [PATCH] selftests: propagate CC to selftest submakes

2020-12-10 Thread Shuah Khan
On 12/10/20 5:10 PM, Andrew Delgadillo wrote: On Thu, Dec 10, 2020 at 3:08 PM Nick Desaulniers wrote: On Thu, Dec 3, 2020 at 2:10 PM Andrew Delgadillo wrote: lib.mk defaults to gcc when CC is not set. When building selftests as part of a kernel compilation, MAKEFLAGS is cleared to allow

Re: [PATCH] selftests: propagate CC to selftest submakes

2020-12-10 Thread Andrew Delgadillo
On Thu, Dec 10, 2020 at 3:08 PM Nick Desaulniers wrote: > > On Thu, Dec 3, 2020 at 2:10 PM Andrew Delgadillo wrote: > > > > lib.mk defaults to gcc when CC is not set. When building selftests > > as part of a kernel compilation, MAKEFLAGS is cleared to allow implicit > > build rules to be used.

Re: [PATCH] selftests: propagate CC to selftest submakes

2020-12-10 Thread Nick Desaulniers
On Thu, Dec 3, 2020 at 2:10 PM Andrew Delgadillo wrote: > > lib.mk defaults to gcc when CC is not set. When building selftests > as part of a kernel compilation, MAKEFLAGS is cleared to allow implicit > build rules to be used. This has the side-effect of clearing the CC > variable, which will

[PATCH] selftests: propagate CC to selftest submakes

2020-12-03 Thread Andrew Delgadillo
lib.mk defaults to gcc when CC is not set. When building selftests as part of a kernel compilation, MAKEFLAGS is cleared to allow implicit build rules to be used. This has the side-effect of clearing the CC variable, which will cause selftests to be built with gcc regardless of if we are using gcc