cmake: compiler: Added property flag for optimization fast
CMSIS modules dsp and nn sets the optimization flag -Ofast for their libraries. I've now made a new compiler property optimization_fast to avoid using ifdefs in the cmsis CMakeLists.txt files. I've update GCC and arcmwdt (not sure if arcmwdt supports -Ofast) Signed-off-by: Lars-Ove Karlsson <lars-ove.karlsson@iar.com>
This commit is contained in:
parent
374f80a917
commit
a43bca0a8c
6 changed files with 9 additions and 5 deletions
|
@ -21,6 +21,7 @@ endif()
|
|||
set_compiler_property(PROPERTY optimization_speed -O2)
|
||||
set_compiler_property(PROPERTY optimization_size -Os)
|
||||
set_compiler_property(PROPERTY optimization_size_aggressive -Oz)
|
||||
set_compiler_property(PROPERTY optimization_fast -Ofast)
|
||||
|
||||
if(CMAKE_C_COMPILER_VERSION GREATER_EQUAL "4.5.0")
|
||||
set_compiler_property(PROPERTY optimization_lto -flto=auto)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue