Re-apply 66315, but restrict it to Darwin only.

llvm-svn: 66427
This commit is contained in:
Evan Cheng 2009-03-09 18:28:37 +00:00
parent c08580af44
commit 3807bb77fa
1 changed files with 10 additions and 0 deletions

View File

@ -519,6 +519,16 @@ ifdef UNIVERSAL
# Building universal cannot compute dependencies automatically.
DISABLE_AUTO_DEPENDENCIES=1
else
ifeq ($(OS),Darwin)
ifeq ($(ARCH),x86_64)
CompileCommonOpts += -m64
else
ifeq ($(ARCH),x86)
CompileCommonOpts += -m32
endif
endif
endif
endif
ifeq ($(OS),SunOS)