diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-03-07 01:40:17 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-03-07 01:40:17 +0000 |
commit | 4b5051b0f91c35fed0d0d443ae435c51147d3d03 (patch) | |
tree | f0cf563c253fc99b87535a1b584bfcbceea73a52 /Makefile.rules | |
parent | 1779f2213f108bc688f9fe32c1fa58b95a0a4aa9 (diff) | |
download | external_llvm-4b5051b0f91c35fed0d0d443ae435c51147d3d03.zip external_llvm-4b5051b0f91c35fed0d0d443ae435c51147d3d03.tar.gz external_llvm-4b5051b0f91c35fed0d0d443ae435c51147d3d03.tar.bz2 |
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.rules | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index a8af0ef..15bc2de 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) |