From 9dc954f168e225a8044c99c2b267572ea228c456 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 19 Apr 2024 12:58:16 -0400 Subject: config: Don't build config tests with -o /dev/null macOS doesn't like it, complaining that error: cannot parse the debug map for '/dev/null': The file was not recognized as a valid object file clang: error: dsymutil command failed with exit code 1 (use -v to see invocation) Use a temporary file instead. --- config/cc.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/config/cc.sh b/config/cc.sh index e6883f5..45d51ca 100755 --- a/config/cc.sh +++ b/config/cc.sh @@ -5,6 +5,12 @@ # Run the compiler and check if it succeeded -set -eux +set -eu -$XCC $XCPPFLAGS $XCFLAGS $XLDFLAGS "$@" $XLDLIBS -o /dev/null +TMP=$(mktemp) +trap 'rm -f "$TMP"' EXIT + +( + set -x + $XCC $XCPPFLAGS $XCFLAGS $XLDFLAGS "$@" $XLDLIBS -o "$TMP" +) -- cgit v1.2.3