Skip to content

Commit

Permalink
Tweak release profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
CathalMullan committed Nov 15, 2024
1 parent ce73838 commit 3c1868e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ str_to_string = "deny"
insta.opt-level = 3
similar.opt-level = 3

[profile.release]
lto = "fat"
codegen-units = 1

[profile.profiling]
inherits = "release"
debug = true
Expand Down
3 changes: 3 additions & 0 deletions nix/vm.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,14 @@
defaultPackages = with pkgs; [
gcc
(rust-bin.stable."1.82.0".minimal)
sccache
gnuplot
];

variables = {
RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache";
RUSTFLAGS = "-C target-cpu=native";
CARGO_INCREMENTAL = "0";
CARGO_TARGET_DIR = "/tmp";
};

Expand Down

0 comments on commit 3c1868e

Please sign in to comment.