[Buildroot] [PATCH v2] pacakge/qt5/qt5base: fix build with ccache
Benoît Thébaudeau
benoit at wsystem.com
Fri Aug 28 10:02:31 UTC 2015
On 28/08/2015 11:57, Thomas Petazzoni wrote:
> On Fri, 28 Aug 2015 11:46:51 +0200, Benoît Thébaudeau wrote:
>
>> +diff --git a/mkspecs/features/device_config.prf b/mkspecs/features/device_config.prf
>> +index cd3a0cf..eee4ac6 100644
>> +--- a/mkspecs/features/device_config.prf
>> ++++ b/mkspecs/features/device_config.prf
>> +@@ -19,10 +19,15 @@ defineTest(deviceSanityCheckCompiler) {
>> + else: \
>> + sfx =
>> +
>> ++ # Build the compiler filename using the first value in QMAKE_CXX in order to
>> ++ # support tools like ccache, which give QMAKE_CXX values of the form:
>> ++ # ccache <path_to_compiler>
>> ++ compiler = $$first(QMAKE_CXX)$$sfx
>
> Then wouldn't it make more sense to use the last() function, to use the
> last value rather than the first, and actual check the compiler rather
> than ccache?
>
> compiler = $$last(QMAKE_CXX)$$sfx
The last() function could be less portable because there might be some other use
cases out there that we're not thinking about. On the contrary, we're certain
that the first value has to be an executable.
Best regards,
Benoît
More information about the buildroot
mailing list