diff options
author | Russ Cox <rsc@swtch.com> | 2012-10-21 12:01:13 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2012-10-21 12:01:13 -0400 |
commit | b0ae8a46a0e40773d306906dd0fd9b33832e7086 (patch) | |
tree | 639159660393ec3819b16122ce87a690ab61c827 /bin | |
parent | 0cfb376070a4bef7b4168a9795e025437e1be79f (diff) | |
download | plan9port-b0ae8a46a0e40773d306906dd0fd9b33832e7086.tar.gz plan9port-b0ae8a46a0e40773d306906dd0fd9b33832e7086.tar.bz2 plan9port-b0ae8a46a0e40773d306906dd0fd9b33832e7086.zip |
9c: support clang on Mac
R=rsc
http://codereview.appspot.com/6744055
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/9c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -65,7 +65,10 @@ useclang() -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 @@ case "$tag" in *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" ;; |