Commit 06208ec0 authored by K900's avatar K900
Browse files

kanidm: don't LTO tests

Saves 30 minutes of build time.
parent e32580d9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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 \