Skip to content

Commit ed120a6

Browse files
committed
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.
1 parent 965ca18 commit ed120a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build-utils-meson/common/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,7 @@ add_project_arguments(
1616
'-Wno-deprecated-declarations',
1717
language : 'cpp',
1818
)
19+
20+
if get_option('buildtype') not in ['debug']
21+
add_project_arguments('-O3', language : 'cpp')
22+
endif

0 commit comments

Comments
 (0)