File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1616set -euo pipefail
1717
1818toolchain_name=" "
19+ disable_wasm_tests=" "
1920
20- while getopts " t:h " opt; do
21+ while getopts " t:hW " opt; do
2122 case " ${opt} " in
2223 " t" ) toolchain_name=" ${OPTARG} " ;;
2324 " h" )
2425 echo " Usage:"
2526 echo " -t - Toolchain name to use for testing; default is llvm_toolchain"
2627 exit 2
2728 ;;
29+ " W" )
30+ disable_wasm_tests=" yes"
31+ ;;
2832 * )
2933 echo " invalid option: -${OPTARG} "
3034 exit 1
6872# to run out of disk space.
6973#
7074# Mitigate this by expunging the workspace before trying to build Wasm targets.
71- if [[ -z ${toolchain_name} ]]; then
75+ if [[ -z ${toolchain_name} && -z ${disable_wasm_tests} ]]; then
7276 # Redefine `test_args` without `--linkopt=-Wl,-v`, which breaks `wasm-ld`.
7377 #
7478 # https://github.com/llvm/llvm-project/issues/112836
Original file line number Diff line number Diff line change @@ -34,8 +34,12 @@ apt-get -qq -y install apt-utils curl libtinfo5 libxml2 pkg-config zlib1g-dev >/
3434# The above command gives some verbose output that can not be silenced easily.
3535# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=288778
3636
37+ # The WebAssembly tests use an LLVM version that is too new for the GNU libc
38+ # distributed in Ubuntu 20.04.
39+ disable_wasm_tests='-W'
40+
3741# Run tests
3842cd /src
39- tests/scripts/run_tests.sh
43+ tests/scripts/run_tests.sh $$ {disable_wasm_tests}
4044" " "
4145done
You can’t perform that action at this time.
0 commit comments