Skip to content

Commit 6472474

Browse files
authored
Merge pull request #21771 from adrian-prantl/asan
2 parents 1d10a6a + 1db8e37 commit 6472474

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

utils/build-script-impl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2524,6 +2524,14 @@ for host in "${ALL_HOSTS[@]}"; do
25242524
-DLLDB_ALLOW_STATIC_BINDINGS=1
25252525
-DLLDB_CODESIGN_IDENTITY=""
25262526
)
2527+
2528+
if [[ "${ENABLE_ASAN}" ]] ; then
2529+
# Limit the number of parallel tests.
2530+
num_phys_cpu = $(sysctl hw.physicalcpu | cut -d : -f 2)
2531+
cmake_options+=(
2532+
-DLLVM_LIT_ARGS="--threads=${num_phys_cpu}"
2533+
)
2534+
fi
25272535
fi
25282536
;;
25292537
esac

0 commit comments

Comments
 (0)