Merge 1d3a469b49 into 48d4d920be
commit
47cd8f1076
|
|
@ -127,6 +127,9 @@ if(CMAKE_CROSSCOMPILING)
|
||||||
# split and gc sections
|
# split and gc sections
|
||||||
add_compile_options(-ffunction-sections -fdata-sections)
|
add_compile_options(-ffunction-sections -fdata-sections)
|
||||||
add_link_options(-ffunction-sections -fdata-sections -Wl,--gc-sections)
|
add_link_options(-ffunction-sections -fdata-sections -Wl,--gc-sections)
|
||||||
|
|
||||||
|
# Call Prologues/Epilogues to reduce code size
|
||||||
|
add_compile_options(-mcall-prologues)
|
||||||
else()
|
else()
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
add_compile_options(-O0)
|
add_compile_options(-O0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue