diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-08-28 16:10:48 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-08-28 17:32:38 -0400 |
commit | bfbe6851afd2eb5b40b23dcb7ce6a9422b0f17fa (patch) | |
tree | 21c77cb8306dbbc36ea5c9b9c6a17a7182daa79e /build/cc.sh | |
parent | 91f6670c97b88fff4b014a90d2880ab476d05f24 (diff) | |
download | bfs-bfbe6851afd2eb5b40b23dcb7ce6a9422b0f17fa.tar.xz |
build: Move the "compiler works at all" test earlier
Diffstat (limited to 'build/cc.sh')
-rwxr-xr-x | build/cc.sh | 9 |
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 |