fix(nix): fix LTO flags

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2024-11-12 09:13:37 +01:00
parent 8d26b6d0ea
commit 72a0f64b35
No known key found for this signature in database
GPG key ID: E13DFD4B47127951

View file

@ -38,7 +38,7 @@ rustPlatform.buildRustPackage rec {
RUSTFLAGS = toRustFlags (
lib.optionalAttrs lto {
lto = "thin";
embed-bicode = "yes";
embed-bitcode = "yes";
}
// lib.optionalAttrs optimizeSize {
codegen-units = "1";