buildsystem: Add an option to enable LTO
This commit adds option to enable Link Time Optimization. Signed-off-by: Radosław Koppel <radoslaw.koppel@nordicsemi.no>
This commit is contained in:
parent
3799b93689
commit
26c8776c70
5 changed files with 28 additions and 2 deletions
|
@ -21,6 +21,9 @@ endif()
|
|||
set_compiler_property(PROPERTY optimization_speed -O2)
|
||||
set_compiler_property(PROPERTY optimization_size -Os)
|
||||
|
||||
set_compiler_property(PROPERTY optimization_lto -flto)
|
||||
set_compiler_property(PROPERTY prohibit_lto -fno-lto)
|
||||
|
||||
#######################################################
|
||||
# This section covers flags related to warning levels #
|
||||
#######################################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue