File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ set(CMAKE_CXX_USE_RESPONSE_FILE_FOR_LIBRARIES 1)
121
121
set (link_options "" )
122
122
set (common_options "" )
123
123
set (c_cxx_compile_options "" ) # compile options only for C/CXX
124
+ set (cxx_compile_options "" ) # compile options only for CXX
124
125
set (asm_compile_options "" ) # compile options only for ASM
125
126
126
127
include (toolchains/${MBED_TOOLCHAIN} )
@@ -140,7 +141,7 @@ endmacro(list_to_space_separated)
140
141
141
142
# set toolchain flags with CMake (INIT variables will be picked up on first run)
142
143
list_to_space_separated (CMAKE_C_FLAGS_INIT ${common_options} ${c_cxx_compile_options} )
143
- set (CMAKE_CXX_FLAGS_INIT ${CMAKE_C_FLAGS_INIT } )
144
+ list_to_space_separated (CMAKE_CXX_FLAGS_INIT ${common_options} ${c_cxx_compile_options} ${cxx_compile_options } )
144
145
list_to_space_separated (CMAKE_ASM_FLAGS_INIT ${common_options} ${asm_compile_options} )
145
146
list_to_space_separated (CMAKE_EXE_LINKER_FLAGS_INIT ${link_options} )
146
147
Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ list(APPEND common_options
43
43
"-g3"
44
44
)
45
45
46
+ list (APPEND cxx_compile_options
47
+ "-Wno-register"
48
+ )
49
+
46
50
# Configure the toolchain to select the selected C library
47
51
function (mbed_set_c_lib target lib_type )
48
52
if (${lib_type} STREQUAL "small" )
You can’t perform that action at this time.
0 commit comments