Skip to content

Commit

Permalink
Use codegen-units=1
Browse files Browse the repository at this point in the history
This produces binaries that are better optimized and deterministic.

This may become obsolete when
rust-lang/rust#128675
is resolved.
  • Loading branch information
bmwiedemann committed Aug 5, 2024
1 parent 559369b commit f5bb18c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros.cargo
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


%build_rustflags -Clink-arg=-Wl,-z,relro,-z,now -C debuginfo=2 -C strip=none
%build_rustflags -Clink-arg=-Wl,-z,relro,-z,now -C debuginfo=2 -C codegen-units=1 -C strip=none
%__cargo CARGO_INCREMENTAL=0 CARGO_FEATURE_VENDORED=1 RUSTFLAGS="%{?__rustflags} %{?build_rustflags}" %{_bindir}/cargo
%__cargo_common_opts %{?_smp_mflags}

Expand Down

0 comments on commit f5bb18c

Please sign in to comment.