[llvm-commits] [llvm] r66315 - /llvm/trunk/Makefile.rules
Evan Cheng
evan.cheng at apple.com
Fri Mar 6 17:40:17 PST 2009
Author: evancheng
Date: Fri Mar 6 19:40:17 2009
New Revision: 66315
URL: http://llvm.org/viewvc/llvm-project?rev=66315&view=rev
Log:
If ARCH is x86_64, pass -m64 to the host compiler. -m32 for i386. This makes sure the JIT work correctly.
Modified:
llvm/trunk/Makefile.rules
Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=66315&r1=66314&r2=66315&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Fri Mar 6 19:40:17 2009
@@ -516,6 +516,14 @@
# 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)
More information about the llvm-commits
mailing list