cmake-utils.eclass: Set assembler correctly, #601292
authorMichał Górny <mgorny@gentoo.org>
Wed, 30 Nov 2016 23:02:32 +0000 (00:02 +0100)
committerMichał Górny <mgorny@gentoo.org>
Thu, 1 Dec 2016 22:39:33 +0000 (23:39 +0100)
commitcbf4efdad952074b3adc412c87ad766d40165293
tree8cadce03eac0b24bb7ee435337c394e085e920be
parent13c2dad013013fc555cb583668c57bc410007350
cmake-utils.eclass: Set assembler correctly, #601292

Use <CMAKE_ASM_COMPILER> in the assembly compile command in order to fix
building assembly files. It turns out that <CMAKE_C_COMPILER> is no
longer correctly evaluated in that command once it is no longer set
explicitly in the toolchain file and passed through the environment
instead.

Pass ASM and ASMFLAGS (equal to CC and CFLAGS) appropriately to enforce
using the correct compiler.
eclass/cmake-utils.eclass