From 4b5051b0f91c35fed0d0d443ae435c51147d3d03 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Sat, 7 Mar 2009 01:40:17 +0000 Subject: 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 --- Makefile.rules | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile.rules') diff --git a/Makefile.rules b/Makefile.rules index a8af0ef4ed..15bc2decf9 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) -- cgit v1.2.3