File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,8 @@ endfunction()
132
132
#
133
133
function (mbed_set_mbed_target_linker_script target )
134
134
get_property (mbed_target_linker_script GLOBAL PROPERTY MBED_TARGET_LINKER_FILE )
135
+ mbed_generate_options_for_linker (${target} _linker_preprocess_definitions )
135
136
if (MBED_TOOLCHAIN STREQUAL "GCC_ARM" )
136
- mbed_generate_options_for_linker (${target} _linker_preprocess_definitions )
137
137
set (CMAKE_PRE_BUILD_COMMAND
138
138
COMMAND "arm-none-eabi-cpp" ${_linker_preprocess_definitions} -x assembler-with-cpp -E -Wp,-P
139
139
${mbed_target_linker_script} -o ${CMAKE_BINARY_DIR} /${target}.link_script.ld
@@ -146,6 +146,7 @@ function(mbed_set_mbed_target_linker_script target)
146
146
target_link_options (mbed-core
147
147
INTERFACE
148
148
"--scatter=${mbed_target_linker_script} "
149
+ "--predefine=${_linker_preprocess_definitions} "
149
150
)
150
151
endif ()
151
152
add_custom_command (
You can’t perform that action at this time.
0 commit comments