cmake: toolchain/xt-clang: force assembler ID to GNU
xt-clang uses GNU Assembler (xt-as) based on binutils. However, CMake doesn't recognize it when invoking through xt-clang. This results in CMake going through all possible combinations of command line arguments while invoking xt-clang to determine assembler vendor. This multiple invocation of xt-clang unnecessarily lengthens the CMake phase of build, especially when xt-clang needs to obtain license information from remote licensing servers. So here forces the assembler ID to be GNU to speed things up a bit. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
ff1857af55
commit
59b2163eeb
1 changed files with 10 additions and 0 deletions
|
@ -7,4 +7,14 @@ set(CC clang)
|
||||||
set(C++ clang++)
|
set(C++ clang++)
|
||||||
set(LINKER xt-ld)
|
set(LINKER xt-ld)
|
||||||
|
|
||||||
|
# xt-clang uses GNU Assembler (xt-as) based on binutils.
|
||||||
|
# However, CMake doesn't recognize it when invoking through xt-clang.
|
||||||
|
# This results in CMake going through all possible combinations of
|
||||||
|
# command line arguments while invoking xt-clang to determine
|
||||||
|
# assembler vendor. This multiple invocation of xt-clang unnecessarily
|
||||||
|
# lengthens the CMake phase of build, especially when xt-clang needs to
|
||||||
|
# obtain license information from remote licensing servers. So here
|
||||||
|
# forces the assembler ID to be GNU to speed things up a bit.
|
||||||
|
set(CMAKE_ASM_COMPILER_ID "GNU")
|
||||||
|
|
||||||
message(STATUS "Found toolchain: xt-clang (${XTENSA_TOOLCHAIN_PATH})")
|
message(STATUS "Found toolchain: xt-clang (${XTENSA_TOOLCHAIN_PATH})")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue