aboutsummaryrefslogtreecommitdiff
path: root/bin/9c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/9c')
-rwxr-xr-xbin/9c11
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/9c b/bin/9c
index 3ffb716c..20919e9a 100755
--- a/bin/9c
+++ b/bin/9c
@@ -14,6 +14,10 @@ usegcc()
-Wno-comment \
-Wno-sign-compare \
-Wno-unknown-pragmas \
+ -Wno-misleading-indentation \
+ -Wno-stringop-truncation \
+ -Wno-stringop-overflow \
+ -Wno-format-truncation \
-fno-omit-frame-pointer \
-fsigned-char \
"
@@ -79,9 +83,8 @@ useclang()
tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}-${CC9:-cc}"
case "$tag" in
-*FreeBSD*gcc*) usegcc ;;
-*FreeBSD*clang*) useclang ;;
-*DragonFly*|*BSD*) usegcc ;;
+*DragonFly*gcc*|*BSD*gcc*) usegcc ;;
+*DragonFly*clang|*BSD*clang*) useclang ;;
*Darwin-x86_64*)
useclang
cflags="$ngflags -g3 -m64"
@@ -133,7 +136,7 @@ case "$tag" in
esac
# N.B. Must use temp file to avoid pipe; pipe loses status.
-xtmp=/tmp/9c.$$.$USER.out
+xtmp=${TMPDIR-/tmp}/9c.$$.$USER.out
$cc -DPLAN9PORT -I$PLAN9/include $cflags "$@" 2>$xtmp
status=$?
quiet $xtmp