From 163bce2e81c3851965a4be80f64d7339eed8ed08 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Fri, 10 Jun 2022 16:33:04 -0500 Subject: [PATCH] Issue #1905 - Part 3k - Separate the GNU and LLVM-as tests. While we should be able to test these together, I don't want to risk breakages on different *nixes. --- build/autoconf/toolchain.m4 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/autoconf/toolchain.m4 b/build/autoconf/toolchain.m4 index 5940e9698a..9fc76a3f6e 100644 --- a/build/autoconf/toolchain.m4 +++ b/build/autoconf/toolchain.m4 @@ -24,7 +24,10 @@ if test "$CC_TYPE" = "gcc"; then GNU_CXX=1 fi -if test "`echo | $AS -o conftest.out -v 2>&1 | grep -c GNU|LLVM`" != "0"; then +if test "`echo | $AS -o conftest.out -v 2>&1 | grep -c GNU`" != "0"; then + GNU_AS=1 +fi +if test "`echo | $AS -o conftest.out -v 2>&1 | grep -c LLVM`" != "0"; then GNU_AS=1 fi rm -f conftest.out