From e2356ae6242d2d03e4778583e92cb8990e91bac2 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sat, 2 Dec 2023 18:51:10 +0100 Subject: [PATCH] fixup! build.sh: deduplicate `cc -dM -E` output and automate __BLST_NO_ASM__. --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index c56b80a9..3e9b4b66 100755 --- a/build.sh +++ b/build.sh @@ -67,7 +67,7 @@ if [ "x$CROSS_COMPILE" = "x" ]; then else { print $1 } }'` fi -predefs=`(${CC} ${CFLAGS} -dM -E -x c /dev/null) 2>/dev/null` +predefs=`(${CC} ${CFLAGS} -dM -E -x c /dev/null || true) 2>/dev/null` if [ -z "${CROSS_COMPILE}${AR}" ] && echo ${predefs} | grep -q clang; then search_dirs=`${CC} -print-search-dirs | awk -F= '/^programs:/{print$2}' | \