clang: fix for x86 iamcu
Clang, build IAMCU with -miamcu. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
72edc4e15f
commit
bebda565b5
2 changed files with 5 additions and 4 deletions
|
@ -7,11 +7,12 @@ else()
|
|||
zephyr_compile_definitions(PERF_OPT)
|
||||
endif()
|
||||
|
||||
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
if(CONFIG_X86_IAMCU)
|
||||
zephyr_cc_option(-Qunused-arguments)
|
||||
zephyr_compile_options(-miamcu)
|
||||
else()
|
||||
zephyr_cc_option(-mmcu)
|
||||
zephyr_compile_options(-Qunused-arguments)
|
||||
endif()
|
||||
|
||||
zephyr_cc_option(
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
zephyr_library()
|
||||
|
||||
if (CMAKE_LANG_COMPILER_ID STREQUAL "Clang")
|
||||
if (CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
# We rely on GAS for assembling, so don't use the integrated assembler
|
||||
zephyr_compile_options_ifndef(CONFIG_X86_IAMCU $<$<COMPILE_LANGUAGE:ASM>:-no-integrated-as>)
|
||||
elseif(CMAKE_LANG_COMPILER_ID STREQUAL "GNU")
|
||||
elseif(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||
zephyr_compile_options($<$<COMPILE_LANGUAGE:ASM>:-Wa,--divide>)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue