Skip to content

Commit fe0bc17

Browse files
committed
added stack usage and forced single precision constants
1 parent aa1e7eb commit fe0bc17

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ target_compile_options(flash_loader PUBLIC "-fomit-frame-pointer")
6262
target_compile_options(flash_loader PUBLIC "-Wall")
6363
target_compile_options(flash_loader PUBLIC "-Werror")
6464

65+
# change all floating point constants to single precision
66+
add_compile_options("-fsingle-precision-constant")
67+
68+
# enable stack usage
69+
add_compile_options(-fstack-usage)
70+
6571
# set the c++ only options
6672
target_compile_options(flash_loader PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-fno-threadsafe-statics>)
6773
target_compile_options(flash_loader PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-fno-rtti>)

0 commit comments

Comments
 (0)