llvmPackages_git: expand the NIX_BUILD_CORES arg passed to lit at configure time

Port of 4d3857d6ed ("llvmPackages_15: expand the `NIX_BUILD_CORES`
arg passed to lit at configure time").
This commit is contained in:
Alyssa Ross
2023-02-27 16:11:48 +00:00
parent 5e46cfeba0
commit fe1c338510
@@ -103,7 +103,7 @@ in stdenv.mkDerivation (rec {
preConfigure = ''
# Workaround for configure flags that need to have spaces
cmakeFlagsArray+=(
-DLLVM_LIT_ARGS='-svj''${NIX_BUILD_CORES} --no-progress-bar'
-DLLVM_LIT_ARGS="-svj''${NIX_BUILD_CORES} --no-progress-bar"
)
'';