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.

Luna Nova b8424868 89baf532

Changed files
+11 -2
pkgs
development
compilers
llvm
common
+11 -2
pkgs/development/compilers/llvm/common/llvm/default.nix
···
devExtraCmakeFlags ? [ ],
getVersionFile,
fetchpatch,
+
# for tests
+
libllvm,
}:
let
···
checkTarget = "check-all";
-
# For the update script:
-
passthru.monorepoSrc = monorepoSrc;
+
passthru = {
+
# For the update script:
+
inherit monorepoSrc;
+
tests.withoutOptionalFeatures = libllvm.override {
+
enablePFM = false;
+
enablePolly = false;
+
enableTerminfo = false;
+
};
+
};
requiredSystemFeatures = [ "big-parallel" ];
meta = llvm_meta // {