optimize in dev mode too
This commit is contained in:
parent
ca0053354a
commit
052672803e
2 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -90,3 +90,9 @@ codegen-units = 1
|
|||
lto = true
|
||||
debug = "full"
|
||||
strip = "none"
|
||||
|
||||
[profile.dev.package."*"]
|
||||
opt-level = 2
|
||||
|
||||
[profile.dev]
|
||||
opt-level = 1
|
||||
|
|
Loading…
Reference in a new issue