1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

If ARCH is x86_64, pass -m64 to the host compiler. -m32 for i386. This makes sure the JIT work correctly.

llvm-svn: 66315
This commit is contained in:
Evan Cheng 2009-03-07 01:40:17 +00:00
parent 4050346c70
commit 5582d4bb05

View File

@ -516,6 +516,14 @@ ifdef UNIVERSAL
# Building universal cannot compute dependencies automatically. # Building universal cannot compute dependencies automatically.
DISABLE_AUTO_DEPENDENCIES=1 DISABLE_AUTO_DEPENDENCIES=1
else
ifeq ($(ARCH),x86_64)
CompileCommonOpts += -m64
else
ifeq ($(ARCH),i386)
CompileCommonOpts += -m32
endif
endif
endif endif
ifeq ($(OS),SunOS) ifeq ($(OS),SunOS)