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

this previously worked because, when using Make, this variable was
expanded at build time
This commit is contained in:
Rahul Butani 2022-10-05 10:22:48 -05:00
parent 912056c71e
commit 4d3857d6ed
No known key found for this signature in database

View file

@ -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"
)
'';