Unverified Commit b8424868 authored by Luna Nova's avatar Luna Nova
Browse files

llvmPackages.libllvm: add passthru.tests.withoutOptionalFeatures

This makes it easier to test optional flags still work.
Just adding one that disables multiple because the build is fairly slow and I don't think exercising
them all separately is going to be worth the extra build time.
parent 89baf532
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -36,6 +36,8 @@
  devExtraCmakeFlags ? [ ],
  getVersionFile,
  fetchpatch,
  # for tests
  libllvm,
}:

let
@@ -589,8 +591,15 @@ stdenv.mkDerivation (

    checkTarget = "check-all";

    passthru = {
      # For the update script:
    passthru.monorepoSrc = monorepoSrc;
      inherit monorepoSrc;
      tests.withoutOptionalFeatures = libllvm.override {
        enablePFM = false;
        enablePolly = false;
        enableTerminfo = false;
      };
    };

    requiredSystemFeatures = [ "big-parallel" ];
    meta = llvm_meta // {