summaryrefslogtreecommitdiffstats
path: root/build/cc.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-08-28 16:10:48 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-08-28 17:32:38 -0400
commitbfbe6851afd2eb5b40b23dcb7ce6a9422b0f17fa (patch)
tree21c77cb8306dbbc36ea5c9b9c6a17a7182daa79e /build/cc.sh
parent91f6670c97b88fff4b014a90d2880ab476d05f24 (diff)
downloadbfs-bfbe6851afd2eb5b40b23dcb7ce6a9422b0f17fa.tar.xz
build: Move the "compiler works at all" test earlier
Diffstat (limited to 'build/cc.sh')
-rwxr-xr-xbuild/cc.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/build/cc.sh b/build/cc.sh
index 23a4c01..fd58393 100755
--- a/build/cc.sh
+++ b/build/cc.sh
@@ -5,5 +5,12 @@
# Run the compiler and check if it succeeded
-set -eux
+set -eu
+
+if [ "$1" = "-q" ]; then
+ shift
+else
+ set -x
+fi
+
$XCC $XCPPFLAGS $XCFLAGS $XLDFLAGS "$@" $XLDLIBS