mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Use -O3 again
This was lost in the switch to the new build system. -O3 provides around a 10% performance gain compared to -O2, see e.g. nix-env.qaAggressive.time in https://hydra.nixos.org/job/nix/master/metrics.nixpkgs#tabs-charts.
This commit is contained in:
parent
965ca18db8
commit
ed120a61ab
1 changed files with 4 additions and 0 deletions
|
@ -16,3 +16,7 @@ add_project_arguments(
|
||||||
'-Wno-deprecated-declarations',
|
'-Wno-deprecated-declarations',
|
||||||
language : 'cpp',
|
language : 'cpp',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if get_option('buildtype') not in ['debug']
|
||||||
|
add_project_arguments('-O3', language : 'cpp')
|
||||||
|
endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue