mirror of
https://git.deuxfleurs.fr/Deuxfleurs/garage.git
synced 2024-11-21 15:41:02 +00:00
Merge pull request 'Enable LTO for release builds using Nix' (#707) from lto-nix into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/707
This commit is contained in:
commit
3a49f86073
2 changed files with 3 additions and 2 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:
|
||||
|
|
|
@ -131,7 +131,8 @@ aws-sdk-config = "1.13"
|
|||
aws-sdk-s3 = "1.14"
|
||||
|
||||
[profile.dev]
|
||||
lto = "thin"
|
||||
#lto = "thin" # disabled for now, adds 2-4 min to each CI build
|
||||
lto = "off"
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
|
|
Loading…
Reference in a new issue