mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Packages/Overlays] Greatly tune and improve package automatic optimization
This commit is contained in:
parent
a3f7ca24b8
commit
c2d8689dc4
2 changed files with 49 additions and 5 deletions
18
packages.nix
18
packages.nix
|
|
@ -22,7 +22,23 @@ in
|
|||
type = types.bool;
|
||||
};
|
||||
compileFlags = mkOption {
|
||||
default = [ "-O3" "-march=${generalCfg.cpuArch}" "-mtune=${generalCfg.cpuTune}" ];
|
||||
default = [
|
||||
"-O3" "-march=${generalCfg.cpuArch}" "-mtune=${generalCfg.cpuTune}"
|
||||
"-feliminate-unused-debug-types" "--param=ssp-buffer-size=32"
|
||||
# "-Wl,--copy-dt-needed-entries-m64-fasynchronous-unwind-tables"
|
||||
"-fasynchronous-unwind-tables"
|
||||
"-fno-semantic-interposition"
|
||||
"-ffat-lto-objects"
|
||||
"-fno-signed-zeros"
|
||||
"-fno-trapping-math"
|
||||
"-fassociative-math"
|
||||
"-fexceptions"
|
||||
"-ftree-loop-distribute-patterns"
|
||||
"-Wl,-sort-common"
|
||||
"-fno-semantic-interposition"
|
||||
"-fipa-pta"
|
||||
"-fdevirtualize-at-ltrans"
|
||||
];
|
||||
example = [ "-O2" "-mavx" ];
|
||||
description = "Add specific compile flags";
|
||||
type = types.listOf types.str;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue