mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Lib/Optimizations] use special CMake flag for LTO
Should have better and more reliable behavior
This commit is contained in:
parent
7516fe7eae
commit
66c0c21178
1 changed files with 3 additions and 0 deletions
|
|
@ -408,6 +408,9 @@ rec {
|
|||
cmakeFlagsArray+=(
|
||||
"-DCMAKE_CXX_FLAGS=$CXXFLAGS"
|
||||
"-DCMAKE_C_FLAGS=$CFLAGS"
|
||||
${optionalString lto ''
|
||||
"-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=true"
|
||||
''}
|
||||
)
|
||||
|
||||
''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue