Skip to content

Commit

Permalink
Use LLVM_LIT_THREADS to limit the number of threads of lit
Browse files Browse the repository at this point in the history
  • Loading branch information
rofirrim committed Jun 16, 2021
1 parent 1d770f3 commit 6063d51
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion utils/OmpSs/setup-cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,14 @@ fi
# Flags for lit
################################################################################

CMAKE_INVOCATION_EXTRA_FLAGS+=("-DLLVM_LIT_ARGS=-sv --xunit-xml-output=xunit.xml")
LIT_ARGS="-DLLVM_LIT_ARGS=-sv --xunit-xml-output=xunit.xml"

if [ -n "${LLVM_LIT_THREADS}" ];
then
LIT_ARGS+=" --threads=${LLVM_LIT_THREADS}"
fi

CMAKE_INVOCATION_EXTRA_FLAGS+=("${LIT_ARGS}")

################################################################################
# Sanitizer build
Expand Down

0 comments on commit 6063d51

Please sign in to comment.