mirror of
https://github.com/RPCSX/llvm.git
synced 2025-05-13 10:56:01 +00:00
Allow specifying an explicit list of architectures to build for, e.g.:
make ENABLE_OPTIMIZED=1 UNIVERSAL=1 UNIVERSAL_ARCH="i386 ppc ppc64" retain the default of building for just i386/ppc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28985 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
775ff18257
commit
7dabf399b9
@ -370,13 +370,22 @@ endif
|
|||||||
|
|
||||||
# If we are building a universal binary on Mac OS/X, pass extra options. This
|
# If we are building a universal binary on Mac OS/X, pass extra options. This
|
||||||
# is useful to people that want to link the LLVM libraries into their universal
|
# is useful to people that want to link the LLVM libraries into their universal
|
||||||
# apps. The UNIVERSAL_SDK_PATH variable can optionally be specified as a path
|
# apps.
|
||||||
# to the SDK to use. For Mac OS/X 10.4 Intel machines, the traditional one is:
|
#
|
||||||
# UNIVERSAL_SDK_PATH=/Developer/SDKs/MacOSX10.4u.sdk/
|
# The following can be optionally specified:
|
||||||
|
# UNIVERSAL_SDK_PATH variable can be specified as a path to the SDK to use.
|
||||||
|
# For Mac OS/X 10.4 Intel machines, the traditional one is:
|
||||||
|
# UNIVERSAL_SDK_PATH=/Developer/SDKs/MacOSX10.4u.sdk/
|
||||||
|
# UNIVERSAL_ARCH can be optionally specified to be a list of architectures
|
||||||
|
# to build for, e.g. UNIVERSAL_ARCH="i386 ppc ppc64". This defaults to
|
||||||
|
# i386/ppc only.
|
||||||
ifdef UNIVERSAL
|
ifdef UNIVERSAL
|
||||||
CompileCommonOpts += -arch i386 -arch ppc
|
ifndef UNIVERSAL_ARCH
|
||||||
Relink.Flags := -XCClinker -arch -XCClinker i386 -XCClinker -arch \
|
UNIVERSAL_ARCH := i386 ppc
|
||||||
-XCClinker ppc
|
endif
|
||||||
|
UNIVERSAL_ARCH_OPTIONS := $(UNIVERSAL_ARCH:%=-arch %)
|
||||||
|
CompileCommonOpts += $(UNIVERSAL_ARCH_OPTIONS)
|
||||||
|
Relink.Flags := $(UNIVERSAL_ARCH_OPTIONS:%=-XCClinker %)
|
||||||
ifdef UNIVERSAL_SDK_PATH
|
ifdef UNIVERSAL_SDK_PATH
|
||||||
CompileCommonOpts += -isysroot $(UNIVERSAL_SDK_PATH)
|
CompileCommonOpts += -isysroot $(UNIVERSAL_SDK_PATH)
|
||||||
Relink.Flags += -XCClinker -isysroot -XCClinker $(UNIVERSAL_SDK_PATH)
|
Relink.Flags += -XCClinker -isysroot -XCClinker $(UNIVERSAL_SDK_PATH)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user