]> granicus.if.org Git - clang/commit
[cmake] Also pass CMAKE_ASM_COMPILER_ID to next stage when bootstrapping
authorDon Hinton <hintonda@gmail.com>
Fri, 19 Jan 2018 18:31:12 +0000 (18:31 +0000)
committerDon Hinton <hintonda@gmail.com>
Fri, 19 Jan 2018 18:31:12 +0000 (18:31 +0000)
commit705cfa322429674b41bf4a9d244ae02759a9d610
tree21056a540848961913df2433554801218fc6976e
parentd91a0b81e57b81df9c049c2df0f298c39518ba0b
[cmake] Also pass CMAKE_ASM_COMPILER_ID to next stage when bootstrapping

Summary:
When setting CMAKE_ASM_COMPILER=clang, we also need to set
CMAKE_ASM_COMPILER_ID=Clang.

This is needed because cmake won't set CMAKE_ASM_COMPILER_ID if
CMAKE_ASM_COMPILER is already set.

Without CMAKE_ASM_COMPILER_ID, cmake can't set
CMAKE_ASM_COMPILER_OPTIONS_TARGET either, which means
CMAKE_ASM_COMPILER_TARGET is ignored, causing cross compiling to fail,
i.e., `--target=${CMAKE_ASM_COMPILER_TARGET}` isn't passed.

Differential Revision: https://reviews.llvm.org/D42232

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@322977 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt