mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-03 06:41:56 +00:00
LTO is not supported yet, but there are a handful of references to the flag '-flto' and the non-existent Kconfig option 'LTO'. To not confuse users about whether LTO is supported or not, we should remove this dead code. As an aside, prototyping has shown that supporting LTO will give signicant (10%) code size improvments, but will not be trivial to support due to how we process object files with python. Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
24 lines
557 B
CMake
24 lines
557 B
CMake
set(ARCH_FOR_cortex-m0 armv6s-m )
|
|
set(ARCH_FOR_cortex-m0plus armv6s-m )
|
|
set(ARCH_FOR_cortex-m3 armv7-m )
|
|
set(ARCH_FOR_cortex-m4 armv7e-m )
|
|
set(ARCH_FOR_cortex-m23 armv8-m.base )
|
|
set(ARCH_FOR_cortex-m33 armv8-m.main+dsp)
|
|
set(ARCH_FOR_cortex-m33+nodsp armv8-m.main )
|
|
|
|
if(ARCH_FOR_${GCC_M_CPU})
|
|
set(ARCH_FLAG -march=${ARCH_FOR_${GCC_M_CPU}})
|
|
endif()
|
|
|
|
zephyr_compile_options(
|
|
-mabi=aapcs
|
|
${ARCH_FLAG}
|
|
)
|
|
|
|
zephyr_ld_options(
|
|
-mabi=aapcs
|
|
${ARCH_FLAG}
|
|
)
|
|
|
|
add_subdirectory(core)
|