mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 01:33:20 +00:00
Merge pull request #315028 from K900/you-wouldnt-lto-a-test
kanidm: don't LTO tests
This commit is contained in:
commit
f51f8dd3cf
@ -71,6 +71,11 @@ rustPlatform.buildRustPackage rec {
|
||||
cp -r server/web_ui/pkg $out/ui
|
||||
'';
|
||||
|
||||
# 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.
|
||||
cargoTestFlags = ["--config" ''profile.release.lto="off"''];
|
||||
|
||||
preFixup = ''
|
||||
installShellCompletion \
|
||||
--bash $releaseDir/build/completions/*.bash \
|
||||
|
Loading…
Reference in New Issue
Block a user