summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-03-07 01:40:17 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-03-07 01:40:17 +0000
commit4b5051b0f91c35fed0d0d443ae435c51147d3d03 (patch)
treef0cf563c253fc99b87535a1b584bfcbceea73a52 /Makefile.rules
parent1779f2213f108bc688f9fe32c1fa58b95a0a4aa9 (diff)
downloadllvm-4b5051b0f91c35fed0d0d443ae435c51147d3d03.tar.gz
llvm-4b5051b0f91c35fed0d0d443ae435c51147d3d03.tar.bz2
llvm-4b5051b0f91c35fed0d0d443ae435c51147d3d03.tar.xz
If ARCH is x86_64, pass -m64 to the host compiler. -m32 for i386. This makes sure the JIT work correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66315 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules
index a8af0ef4ed..15bc2decf9 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -516,6 +516,14 @@ ifdef UNIVERSAL
# Building universal cannot compute dependencies automatically.
DISABLE_AUTO_DEPENDENCIES=1
+else
+ ifeq ($(ARCH),x86_64)
+ CompileCommonOpts += -m64
+ else
+ ifeq ($(ARCH),i386)
+ CompileCommonOpts += -m32
+ endif
+ endif
endif
ifeq ($(OS),SunOS)