enable floating point printf support, unless disabled by config value 'gcc.printf-float = false'

master
James Crosby 7 years ago
parent 84cfc737bb
commit 3966fa750e

@ -71,6 +71,9 @@ set(CMAKE_MODULE_LINKER_FLAGS_INIT
"-fno-exceptions -fno-unwind-tables -Wl,--gc-sections -Wl,--sort-common -Wl,--sort-section=alignment"
)
set(CMAKE_EXE_LINKER_FLAGS_INIT "${CMAKE_MODULE_LINKER_FLAGS_INIT} -Wl,-wrap,main")
if((NOT DEFINED YOTTA_CFG_GCC_PRINTF_FLOAT) OR (YOTTA_CFG_GCC_PRINTF_FLOAT))
set(CMAKE_EXE_LINKER_FLAGS_INIT "${CMAKE_EXE_LINKER_FLAGS_INIT} -Wl,-u,_printf_float")
endif()
# Set the compiler to ARM-GCC
include(CMakeForceCompiler)

Loading…
Cancel
Save