1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 19:52:20 +00:00

INIT: tweak cc.{darwin,freebsd}; add cc.openbsd

(cherry picked from commit a1d8ff6faca522a29161582952e232afc76fd643)
This commit is contained in:
Martijn Dekker 2020-06-06 03:40:18 +02:00
parent 8e97419b0b
commit 7a421ba57f
4 changed files with 25 additions and 10 deletions

View file

@ -46,7 +46,7 @@ init) echo "cc: arguments expected" >&2
cpp) $CC -E "$@"
;;
cc) $CC -DSHOPT_SPAWN=0 -D_ast_int8_t=int64_t -D_lib_memccpy \
-Wno-unused-value -Wno-parentheses -Wno-macro-redefined "$@"
-Wno-unused-value -Wno-parentheses "$@"
;;
dll) $CC -Wl,-flat_namespace -dynamiclib -undefined dynamic_lookup "$@"
;;

12
src/cmd/INIT/cc.freebsd Executable file
View file

@ -0,0 +1,12 @@
: FreeBSD cc wrapper
HOSTTYPE=freebsd.generic
case " $* " in
*" -dumpmachine "*) echo $HOSTTYPE; exit ;;
esac
exec /usr/bin/cc -P \
-Wno-unused-value \
-Wno-parentheses \
"$@"

View file

@ -1,9 +0,0 @@
: linux.i386-64 cc wrapper : 2006-02-14 :
HOSTTYPE=freebsd12.amd64
case " $* " in
*" -dumpmachine "*) echo $HOSTTYPE; exit ;;
esac
/usr/bin/cc -P "$@"

12
src/cmd/INIT/cc.openbsd Executable file
View file

@ -0,0 +1,12 @@
: OpenBSD cc wrapper
HOSTTYPE=openbsd.generic
case " $* " in
*" -dumpmachine "*) echo $HOSTTYPE; exit ;;
esac
exec /usr/bin/cc -P \
-Wno-unused-value \
-Wno-parentheses \
"$@"