Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(113)

Unified Diff: bin/9c

Issue 6744055: code review 6744055: 9c: support clang on Mac (Closed)
Patch Set: diff -r 33aade40e6ab https://code.google.com/p/plan9port Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/9c
===================================================================
--- a/bin/9c
+++ b/bin/9c
@@ -65,7 +65,10 @@
-Wno-unknown-pragmas \
-Wno-empty-body \
-Wno-unused-value \
+ -Wno-array-bounds \
+ -Wno-gnu-designator \
-fsigned-char \
+ -fno-caret-diagnostics \
"
cflags="$ngflags -g"
}
@@ -75,8 +78,16 @@
*FreeBSD*gcc*) usegcc ;;
*FreeBSD*clang*) useclang ;;
*BSD*) usegcc ;;
+*Darwin-x86_64*clang*)
+ useclang
+ cflags="$ngflags -g3 -m64"
+ ;;
*Darwin-x86_64*) usegcc
cflags="$ngflags -g3 -no-cpp-precomp -m64" ;;
+*Darwin*clang*)
+ useclang
+ cflags="$ngflags -g3 -m32"
+ ;;
*Darwin*) usegcc
cflags="$ngflags -g3 -no-cpp-precomp -m32" ;;
*HP-UX*) cc=${CC9:-cc}; cflags="-g -O -c -Ae" ;;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b