build: Change default CC to be clang instead of gcc.

llvm-svn: 144658
This commit is contained in:
Daniel Dunbar 2011-11-15 18:34:17 +00:00
parent be6535b3dc
commit fdb75e40ae
3 changed files with 3 additions and 4 deletions

View File

@ -67,7 +67,7 @@ endif
###
CC := gcc
CC := clang
# Forcibly strip off any -arch, as that totally breaks our universal support.
override CC := $(subst -arch ,-arch_,$(CC))

View File

@ -37,7 +37,7 @@ UniversalArchs := i386 ppc x86_64
# <Option Name>.<Arch Name> := ...
# <Option Name>.<Config Name>.<Arch Name> := ...
CC := gcc
CC := clang
CFLAGS := -Wall -Werror
CFLAGS.Debug := $(CFLAGS) -g

View File

@ -5,8 +5,7 @@ Configs := m32 m64
Arch := i386
Arch.m64 := x86_64
CC := gcc
CC.m32 := clang
CC := clang
CFLAGS := -Wall -Werror
CFLAGS.m32 := $(CFLAGS) -m32 -O3