Skip to content

Commit

Permalink
added stack usage and forced single precision constants
Browse files Browse the repository at this point in the history
  • Loading branch information
itzandroidtab committed Nov 30, 2024
1 parent aa1e7eb commit fe0bc17
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ target_compile_options(flash_loader PUBLIC "-fomit-frame-pointer")
target_compile_options(flash_loader PUBLIC "-Wall")
target_compile_options(flash_loader PUBLIC "-Werror")

# change all floating point constants to single precision
add_compile_options("-fsingle-precision-constant")

# enable stack usage
add_compile_options(-fstack-usage)

# set the c++ only options
target_compile_options(flash_loader PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-fno-threadsafe-statics>)
target_compile_options(flash_loader PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-fno-rtti>)
Expand Down

0 comments on commit fe0bc17

Please sign in to comment.