If ARCH is x86_64, pass -m64 to the host compiler. -m32 for i386. This makes sure...
authorEvan Cheng <evan.cheng@apple.com>
Sat, 7 Mar 2009 01:40:17 +0000 (01:40 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 7 Mar 2009 01:40:17 +0000 (01:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66315 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index a8af0ef4ede0a612e4c9f790371ba8870cca8307..15bc2decf9bf551aa2fba199d3de4a49e24f0916 100644 (file)
@@ -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)