mirror of https://github.com/ARMmbed/mbed-os.git
CMake ARMClang6: use armclang for asm
Fixes the issue of armasm, passing -DMACRO={0,0} - fails to parse. We use armclang frontend but passing -masm=armasm.pull/13566/head
parent
a0fbe2947a
commit
3be2d15e2d
|
@ -1,7 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set(CMAKE_ASM_COMPILER "armasm")
|
||||
set(CMAKE_ASM_COMPILER "armclang")
|
||||
set(CMAKE_C_COMPILER "armclang")
|
||||
set(CMAKE_CXX_COMPILER "armclang")
|
||||
set(CMAKE_AR "armar")
|
||||
|
@ -42,14 +42,10 @@ function(mbed_set_toolchain_options target)
|
|||
$<$<COMPILE_LANGUAGE:CXX>:${common_options}>
|
||||
)
|
||||
|
||||
set(asm_preproc_options
|
||||
"--target=arm-arm-none-eabi,-D,MBED_CONF_PLATFORM_CRASH_CAPTURE_ENABLED"
|
||||
)
|
||||
target_compile_options(${target}
|
||||
PUBLIC
|
||||
$<$<COMPILE_LANGUAGE:ASM>:--target=arm-arm-none-eabi -masm=armasm>
|
||||
$<$<COMPILE_LANGUAGE:ASM>:${MBED_STUDIO_ARM_COMPILER}>
|
||||
$<$<COMPILE_LANGUAGE:ASM>:--cpreproc>
|
||||
$<$<COMPILE_LANGUAGE:ASM>:--cpreproc_opts=${asm_preproc_options}>
|
||||
)
|
||||
|
||||
target_compile_definitions(${target}
|
||||
|
|
Loading…
Reference in New Issue