Browse files

Changes default macosx compiler to clang.

The default gcc version provided by current Xcode versions doesn't work.
Alternatively macport's gcc-4.7 is known to work too, but that is less
common for macosx users.
  • Loading branch information...
1 parent 52c3a91 commit 152c963c4a7386fdb61cfcb2342857533b5bc344 @gradha gradha committed Mar 2, 2013
Showing with 3 additions and 0 deletions.
  1. +2 −0 build.sh
  2. +1 −0 config/nimrod.cfg
View
2 build.sh
@@ -57,6 +57,8 @@ case $uos in
;;
*darwin* )
myos="macosx"
+ CC="clang"
+ LINKER="clang"
LINK_FLAGS="$LINK_FLAGS -ldl -lm"
if [ "$HOSTTYPE" = "x86_64" ] ; then
ucpu="amd64"
View
1 config/nimrod.cfg
@@ -91,6 +91,7 @@ hint[LineTooLong]=off
@end
@if macosx:
+ cc = clang
tlsEmulation:on
gcc.options.always = "-w -fasm-blocks"
gpp.options.always = "-w -fasm-blocks"

0 comments on commit 152c963

Please sign in to comment.