File tree 3 files changed +3599
-2126
lines changed
3 files changed +3599
-2126
lines changed Original file line number Diff line number Diff line change @@ -8,11 +8,10 @@ set({{pnum}}_MAXDATASIZE {{config.upload.maximum_data_size}})
8
8
set ({{pnum}}_MCU {{config.build .mcu}})
9
9
add_library ({{pnum}} INTERFACE )
10
10
target_compile_options ({{pnum}} INTERFACE
11
- "SHELL:{{config.build.extra_flags }}"
11
+ "SHELL:{{config.build.st_extra_flags }}"
12
12
"SHELL:{{config.build.peripheral_pins}}"
13
13
"SHELL:{{config.build.startup_file}}"
14
- "SHELL:{{config.build.flags.fp}}"
15
- "SHELL:{{config.build.startup_file}}"
14
+ "SHELL:{{config.build.fpu}} {{config.build[" float-abi"]}}"
16
15
-mcpu={{ "${" }}{{pnum}}_MCU{{ "}" }}
17
16
)
18
17
target_compile_definitions ({{pnum}} INTERFACE
@@ -36,7 +35,7 @@ target_link_options({{pnum}} INTERFACE
36
35
"LINKER:--defsym=LD_FLASH_OFFSET={{config.build.flash_offset or " 0"}}"
37
36
"LINKER:--defsym=LD_MAX_SIZE={{config.upload.maximum_size}}"
38
37
"LINKER:--defsym=LD_MAX_DATA_SIZE={{config.upload.maximum_data_size}}"
39
- "SHELL:{{config.build.flags.fp }}"
38
+ "SHELL:{{config.build.fpu}} {{config.build[" float-abi "] }}"
40
39
-mcpu={{ "${" }}{{pnum}}_MCU{{ "}" }}
41
40
)
42
41
target_link_libraries ({{pnum}} INTERFACE
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ set(BUILD_OPT "s" CACHE STRING "Optimization level")
20
20
set (BUILD_DBG OFF CACHE BOOL "Enable debug symbols" )
21
21
set (BUILD_LTO OFF CACHE BOOL "Enable Link-Time-Optimisations" )
22
22
set (BUILD_RELPATH ON CACHE BOOL "make __FILE__ be relative instead of absolute" )
23
+ set (BUILD_NDEBUG ON CACHE BOOL "define the NDEBUG macro?" )
23
24
24
25
set (USB_PID 0)
25
26
set (USB_VID 0)
@@ -42,6 +43,10 @@ if(${BUILD_RELPATH})
42
43
)
43
44
endif ()
44
45
46
+ if (${BUILD_NDEBUG} )
47
+ add_compile_definitions (core_config INTERFACE NDEBUG)
48
+ endif ()
49
+
45
50
# configuration specifics
46
51
if (${FEAT_XSERIAL} STREQUAL "GENERIC" )
47
52
target_compile_definitions (core_config INTERFACE
You can’t perform that action at this time.
0 commit comments