pull/325/merge
Guðni Már Gilbert 2025-12-01 17:43:35 +00:00 committed by GitHub
commit 47cd8f1076
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -127,6 +127,9 @@ if(CMAKE_CROSSCOMPILING)
# split and gc sections
add_compile_options(-ffunction-sections -fdata-sections)
add_link_options(-ffunction-sections -fdata-sections -Wl,--gc-sections)
# Call Prologues/Epilogues to reduce code size
add_compile_options(-mcall-prologues)
else()
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
add_compile_options(-O0)