summaryrefslogtreecommitdiffstats
path: root/build/cc.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-06-21 12:11:08 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-06-21 12:51:37 -0400
commit4bc79148e2ed23273afefaf439a03364d5161046 (patch)
tree4e996b7e46e56e28bb6d137db49b8fae139189eb /build/cc.sh
parent4bc06bd999786da359a05801bf9106597fe57298 (diff)
downloadbfs-4bc79148e2ed23273afefaf439a03364d5161046.tar.xz
build: Save cc.sh build products to gen/
Diffstat (limited to 'build/cc.sh')
-rwxr-xr-xbuild/cc.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/build/cc.sh b/build/cc.sh
index 45d51ca..23a4c01 100755
--- a/build/cc.sh
+++ b/build/cc.sh
@@ -5,12 +5,5 @@
# Run the compiler and check if it succeeded
-set -eu
-
-TMP=$(mktemp)
-trap 'rm -f "$TMP"' EXIT
-
-(
- set -x
- $XCC $XCPPFLAGS $XCFLAGS $XLDFLAGS "$@" $XLDLIBS -o "$TMP"
-)
+set -eux
+$XCC $XCPPFLAGS $XCFLAGS $XLDFLAGS "$@" $XLDLIBS