diff options
author | Alex Auvolat <alex@adnab.me> | 2024-02-07 19:41:23 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2024-02-08 10:22:23 +0100 |
commit | 2b92e8d7c6bcfaec7d9b8457d9a7e88aa85ee268 (patch) | |
tree | 68bf4ad030331f2483fa0f132daa1bc3f81bd177 /Cargo.nix | |
parent | 59930977e074a78adaf43f9933612dae835804cf (diff) | |
download | garage-2b92e8d7c6bcfaec7d9b8457d9a7e88aa85ee268.tar.gz garage-2b92e8d7c6bcfaec7d9b8457d9a7e88aa85ee268.zip |
[lto-nix] enable LTO for release builds using Nixlto-nix
Diffstat (limited to 'Cargo.nix')
-rw-r--r-- | Cargo.nix | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -45,7 +45,7 @@ else let inherit (rustLib) fetchCratesIo fetchCrateLocal fetchCrateGit fetchCrateAlternativeRegistry expandFeatures decideProfile genDrvsByProfile; profilesByName = { dev = builtins.fromTOML "lto = \"off\"\n"; - release = builtins.fromTOML "debug = true\n"; + release = builtins.fromTOML "codegen-units = 1\nlto = true\nopt-level = \"s\"\nstrip = true\n"; }; rootFeatures' = expandFeatures rootFeatures; overridableMkRustCrate = f: |