From: Evan Cheng Date: Sat, 7 Mar 2009 01:40:17 +0000 (+0000) Subject: If ARCH is x86_64, pass -m64 to the host compiler. -m32 for i386. This makes sure... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4b5051b0f91c35fed0d0d443ae435c51147d3d03;p=oota-llvm.git 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 --- diff --git a/Makefile.rules b/Makefile.rules index a8af0ef4ede..15bc2decf9b 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)