mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
parent
0cfb376070
commit
b0ae8a46a0
1 changed files with 11 additions and 0 deletions
11
bin/9c
11
bin/9c
|
@ -65,7 +65,10 @@ useclang()
|
||||||
-Wno-unknown-pragmas \
|
-Wno-unknown-pragmas \
|
||||||
-Wno-empty-body \
|
-Wno-empty-body \
|
||||||
-Wno-unused-value \
|
-Wno-unused-value \
|
||||||
|
-Wno-array-bounds \
|
||||||
|
-Wno-gnu-designator \
|
||||||
-fsigned-char \
|
-fsigned-char \
|
||||||
|
-fno-caret-diagnostics \
|
||||||
"
|
"
|
||||||
cflags="$ngflags -g"
|
cflags="$ngflags -g"
|
||||||
}
|
}
|
||||||
|
@ -75,8 +78,16 @@ case "$tag" in
|
||||||
*FreeBSD*gcc*) usegcc ;;
|
*FreeBSD*gcc*) usegcc ;;
|
||||||
*FreeBSD*clang*) useclang ;;
|
*FreeBSD*clang*) useclang ;;
|
||||||
*BSD*) usegcc ;;
|
*BSD*) usegcc ;;
|
||||||
|
*Darwin-x86_64*clang*)
|
||||||
|
useclang
|
||||||
|
cflags="$ngflags -g3 -m64"
|
||||||
|
;;
|
||||||
*Darwin-x86_64*) usegcc
|
*Darwin-x86_64*) usegcc
|
||||||
cflags="$ngflags -g3 -no-cpp-precomp -m64" ;;
|
cflags="$ngflags -g3 -no-cpp-precomp -m64" ;;
|
||||||
|
*Darwin*clang*)
|
||||||
|
useclang
|
||||||
|
cflags="$ngflags -g3 -m32"
|
||||||
|
;;
|
||||||
*Darwin*) usegcc
|
*Darwin*) usegcc
|
||||||
cflags="$ngflags -g3 -no-cpp-precomp -m32" ;;
|
cflags="$ngflags -g3 -no-cpp-precomp -m32" ;;
|
||||||
*HP-UX*) cc=${CC9:-cc}; cflags="-g -O -c -Ae" ;;
|
*HP-UX*) cc=${CC9:-cc}; cflags="-g -O -c -Ae" ;;
|
||||||
|
|
Loading…
Reference in a new issue