Fix Makefile to pass the correct -arch flag to the toolchains.

llvm-svn: 156882
This commit is contained in:
Johnny Chen 2012-05-16 00:33:34 +00:00
parent 4e711921ba
commit e7ae16fa83
1 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,10 @@
all: a.out liba.dylib libb.dylib libc.dylib libd.dylib
CC ?= clang
CFLAGS ?=-arch x86_64 -gdwarf-2 -O0
ifeq "$(ARCH)" ""
ARCH = x86_64
endif
CFLAGS ?=-arch $(ARCH) -gdwarf-2 -O0
CWD := $(shell pwd)
all: a.out hidden/libd.dylib