Projectkk2glider/hardware floating point (#4477)

* Turn on compiler hardware floating point support for F4 targets

* Fixes, works on Horus

* Comment updated
This commit is contained in:
Damjan Adamic
2017-02-18 00:52:52 +01:00
committed by Bertrand Songis
parent 3e84e7930c
commit 299c5924fa
4 changed files with 10 additions and 2 deletions
+1
View File
@@ -434,6 +434,7 @@ if(NOT MSVC)
set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> -o <OBJECT> <SOURCE>")
set(COMMON_FLAGS "-mcpu=${MCU} -mthumb -fomit-frame-pointer -fverbose-asm -Wa,-ahlms=firmware.lst -O${OPT} -gdwarf-2 -DHSE_VALUE=${HSE_VALUE} -fno-exceptions -fdata-sections -ffunction-sections ${WARNING_FLAGS}")
set(COMMON_FLAGS "${COMMON_FLAGS} ${FPU_FLAGS}")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${COMMON_FLAGS} -Wimplicit")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMMON_FLAGS}")