From 0c62e2546441d67e7db47880d394503dac6c37ad Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 18 Feb 2018 23:03:26 -0800 Subject: [PATCH] tools/run_tests.sh: detect gcc without multilib support --- tools/run_tests.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/run_tests.sh b/tools/run_tests.sh index 839e9ac..e5faed5 100755 --- a/tools/run_tests.sh +++ b/tools/run_tests.sh @@ -140,8 +140,9 @@ native_tests() { fi for compiler in ${compilers_to_try[@]}; do for cflags in "${cflags_to_try[@]}"; do - if [ "$compiler" = "/usr/bin/gcc-4.8" -a \ - "$cflags" = "-m32" ]; then + if [ "$cflags" = "-m32" ] && \ + $compiler -v |& grep -q -- '--disable-multilib' + then continue fi log "Running tests with CC=$compiler," \