Skip to content

Commit 62be4ef

Browse files
committed
CMake: Clean remnant of experiment with ARM toolchain
The removed code was testing that compiler flags could be added to the assembler using generator expression. It was not to be committed.
1 parent f227856 commit 62be4ef

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

tools/cmake/toolchains/ARM.cmake

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,9 @@ set(CMAKE_AR "armar")
88
set(ARM_ELF2BIN "fromelf")
99
set_property(GLOBAL PROPERTY ELF2BIN ${ARM_ELF2BIN})
1010

11-
option(MBEDIDE "Use Arm compiler from Mbed Studio" OFF)
12-
if(MBEDIDE)
13-
set_property(GLOBAL PROPERTY MBED_STUDIO_ARM_COMPILER "--ide=mbed")
14-
endif()
15-
1611
# Sets toolchain options
1712
function(mbed_set_toolchain_options target)
18-
get_property(mbed_studio_arm_compiler GLOBAL PROPERTY MBED_STUDIO_ARM_COMPILER)
1913
list(APPEND common_options
20-
"${mbed_studio_arm_compiler}"
2114
"-c"
2215
"--target=arm-arm-none-eabi"
2316
"-mthumb"
@@ -44,11 +37,9 @@ function(mbed_set_toolchain_options target)
4437
target_compile_options(${target}
4538
INTERFACE
4639
$<$<COMPILE_LANGUAGE:ASM>:--target=arm-arm-none-eabi -masm=auto>
47-
$<$<COMPILE_LANGUAGE:ASM>:${MBED_STUDIO_ARM_COMPILER}>
4840
)
4941

5042
list(APPEND link_options
51-
"${MBED_STUDIO_ARM_COMPILER}"
5243
"--map"
5344
)
5445

0 commit comments

Comments
 (0)