optimize in dev mode too

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-26 09:28:46 +01:00
parent ca0053354a
commit 052672803e
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 7 additions and 0 deletions

View file

@ -49,6 +49,7 @@ else
genDrvsByProfile
;
profilesByName = {
dev = builtins.fromTOML "opt-level = 1\n\n[package.\"*\"]\nopt-level = 2\n";
release = builtins.fromTOML "codegen-units = 1\ndebug = \"full\"\nlto = true\nstrip = \"none\"\n";
};
rootFeatures' = expandFeatures rootFeatures;

View file

@ -90,3 +90,9 @@ codegen-units = 1
lto = true
debug = "full"
strip = "none"
[profile.dev.package."*"]
opt-level = 2
[profile.dev]
opt-level = 1