mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
kanidm: allow dead code warnings
This commit is contained in:
parent
0481587e35
commit
bb292ebc85
@ -71,6 +71,9 @@ rustPlatform.buildRustPackage rec {
|
||||
cp -r server/web_ui/pkg $out/ui
|
||||
'';
|
||||
|
||||
# Otherwise build breaks on some unused code
|
||||
env.RUSTFLAGS = "-A dead_code";
|
||||
|
||||
# Not sure what pathological case it hits when compiling tests with LTO,
|
||||
# but disabling it takes the total `cargo check` time from 40 minutes to
|
||||
# around 5 on a 16-core machine.
|
||||
|
Loading…
Reference in New Issue
Block a user