summaryrefslogtreecommitdiffstats
path: root/build/cc.sh
diff options
context:
space:
mode:
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