aboutsummaryrefslogtreecommitdiff
path: root/bin/9c
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2021-02-18 20:21:24 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2021-02-18 20:21:24 +0100
commit181d56ee64da53279bb6ecf49c24ab54cfb7193f (patch)
treefc6c8736bb97790a257c5514998c583ffce7c41c /bin/9c
parent94c521bf102a74aec7e1a5c3a9ef5eaa968d4e14 (diff)
parent90971376a5e8620fc62579aa1b3be26245ec8c06 (diff)
downloadplan9port-master.tar.gz
plan9port-master.tar.bz2
plan9port-master.zip
Merge remote-tracking branch 'upstream/master'HEADmaster
Diffstat (limited to 'bin/9c')
-rwxr-xr-xbin/9c24
1 files changed, 3 insertions, 21 deletions
diff --git a/bin/9c b/bin/9c
index 59adda7f..63840b19 100755
--- a/bin/9c
+++ b/bin/9c
@@ -26,10 +26,6 @@ usegcc()
# that option only works with gcc3+ it seems
cflags="$cflags -ggdb"
cflags="$cflags $CC9FLAGS"
- case "$cflags" in
- *sanitize=address*)
- cflags="$cflags -DPLAN9PORT_ASAN"
- esac
}
quiet()
@@ -83,14 +79,10 @@ useclang()
-Wno-unneeded-internal-declaration \
-fsigned-char \
-fno-caret-diagnostics \
+ -fcommon \
"
cflags="$cflags -g"
cflags="$cflags $CC9FLAGS"
-
- case "$cflags" in
- *sanitize=address*)
- cflags="$cflags -DPLAN9PORT_ASAN"
- esac
}
usexlc()
@@ -111,24 +103,14 @@ usexlc()
cflags="$cflags $CC9FLAGS"
}
-tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}-${CC9:-cc}"
+tag="${SYSNAME:-`uname`}-${CC9:-cc}"
case "$tag" in
*DragonFly*gcc*|*BSD*gcc*) usegcc ;;
*DragonFly*clang|*BSD*clang*) useclang ;;
-*Darwin-x86_64*)
+*Darwin*)
useclang
cflags="$cflags -g3 -m64"
;;
-*Darwin-arm64*)
- useclang
- cflags="$cflags -g3 -m64"
- ;;
-*Darwin*clang*)
- useclang
- cflags="$cflags -g3 -m32"
- ;;
-*Darwin*) usegcc
- cflags="$cflags -g3 -no-cpp-precomp -m32" ;;
*HP-UX*) cc=${CC9:-cc}; cflags="-g -O -c -Ae" ;;
*Linux*) usegcc
case "${CC9:-gcc}" in