[llvm-commits] [llvm] r66427 - /llvm/trunk/Makefile.rules

Evan Cheng evan.cheng at apple.com
Mon Mar 9 11:28:37 PDT 2009


Author: evancheng
Date: Mon Mar  9 13:28:37 2009
New Revision: 66427

URL: http://llvm.org/viewvc/llvm-project?rev=66427&view=rev
Log:
Re-apply 66315, but restrict it to Darwin only.

Modified:
    llvm/trunk/Makefile.rules

Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=66427&r1=66426&r2=66427&view=diff

==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Mon Mar  9 13:28:37 2009
@@ -519,6 +519,16 @@
 
   # 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)





More information about the llvm-commits mailing list