Skip to content

Commit

Permalink
fixup! build.sh: deduplicate cc -dM -E output and automate __BLST_N…
Browse files Browse the repository at this point in the history
…O_ASM__.
  • Loading branch information
dot-asm committed Dec 2, 2023
1 parent 7e015b2 commit c298f1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}' | \
Expand Down

0 comments on commit c298f1e

Please sign in to comment.