]> code.ossystems Code Review - openembedded-core.git/commit
cmake.bbclass: Rework compiler program variables for allarch
authorNathan Rossi <nathan@nathanrossi.com>
Sat, 8 Aug 2020 12:08:43 +0000 (12:08 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Aug 2020 17:14:54 +0000 (18:14 +0100)
commite0657ff13453deedbdcf7c2f8a8854f601c659bd
treec448a54a4f6b366ce44ad2dc37e79aaa4c78c7f0
parent66b50021c1f5db65d2bbf45b11b4d7c2eb47cd1b
cmake.bbclass: Rework compiler program variables for allarch

CMake projects can specify the NONE project type. Projects that do this
do not use any C or C++ compiler, this currently works fine with caveat
that when changing the machine/arch the compiler is different causing
signature hash differences.

To avoid the signature hash differences clear the associated C/CXX
compiler variables. In order to achieve this with overrides, simplify
the existing construction of the values using a python function and
variable setting and remove the anonymous variable setup.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cmake.bbclass