From 0ae1b1ce1a1708499aca722155fb2b72cb040d45 Mon Sep 17 00:00:00 2001 From: Amy Kwan Date: Wed, 8 Dec 2021 19:54:57 -0600 Subject: [PATCH] [test-release.sh] Respect the given width in LIT runs by adding `-j` in LLVM_LIT_ARGS. This patch adds allows the LIT runs within test-release.sh to obey the width that is passed into the script. This is accomplished by adding the width in the LLVM_LIT_ARGS CMake configuration. Differential Revision: https://reviews.llvm.org/D115350 --- llvm/utils/release/test-release.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm/utils/release/test-release.sh b/llvm/utils/release/test-release.sh index ad1166f5086b..cd1519370d5c 100755 --- a/llvm/utils/release/test-release.sh +++ b/llvm/utils/release/test-release.sh @@ -388,6 +388,7 @@ function configure_llvmCore() { -DCMAKE_BUILD_TYPE=$BuildType -DLLVM_ENABLE_ASSERTIONS=$Assertions \ -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ -DLLVM_ENABLE_PROJECTS="$project_list" \ + -DLLVM_LIT_ARGS="-j $NumJobs" \ $ExtraConfigureFlags $BuildDir/llvm-project/llvm \ 2>&1 | tee $LogDir/llvm.configure-Phase$Phase-$Flavor.log env CC="$c_compiler" CXX="$cxx_compiler" \ @@ -395,6 +396,7 @@ function configure_llvmCore() { -DCMAKE_BUILD_TYPE=$BuildType -DLLVM_ENABLE_ASSERTIONS=$Assertions \ -DCMAKE_POSITION_INDEPENDENT_CODE=ON \ -DLLVM_ENABLE_PROJECTS="$project_list" \ + -DLLVM_LIT_ARGS="-j $NumJobs" \ $ExtraConfigureFlags $BuildDir/llvm-project/llvm \ 2>&1 | tee $LogDir/llvm.configure-Phase$Phase-$Flavor.log