mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
build/Make: Define a TARGET_NATIVE_ARCH variable to be a bit more precise than
ARCH, which gets tested in many more contexts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144434 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0e3642a587
commit
a7de1d67b2
2
Makefile
2
Makefile
@ -126,7 +126,7 @@ cross-compile-build-tools:
|
|||||||
$(MAKE) -C BuildTools \
|
$(MAKE) -C BuildTools \
|
||||||
BUILD_DIRS_ONLY=1 \
|
BUILD_DIRS_ONLY=1 \
|
||||||
UNIVERSAL= \
|
UNIVERSAL= \
|
||||||
ARCH="$(ARCH)" \
|
TARGET_NATIVE_ARCH="$(TARGET_NATIVE_ARCH)" \
|
||||||
TARGETS_TO_BUILD="$(TARGETS_TO_BUILD)" \
|
TARGETS_TO_BUILD="$(TARGETS_TO_BUILD)" \
|
||||||
ENABLE_OPTIMIZED=$(ENABLE_OPTIMIZED) \
|
ENABLE_OPTIMIZED=$(ENABLE_OPTIMIZED) \
|
||||||
ENABLE_PROFILING=$(ENABLE_PROFILING) \
|
ENABLE_PROFILING=$(ENABLE_PROFILING) \
|
||||||
|
@ -107,6 +107,7 @@ TARGET_OS=@TARGET_OS@
|
|||||||
|
|
||||||
# Target hardware architecture
|
# Target hardware architecture
|
||||||
ARCH=@ARCH@
|
ARCH=@ARCH@
|
||||||
|
TARGET_NATIVE_ARCH := $(ARCH)
|
||||||
|
|
||||||
# Indicates, whether we're cross-compiling LLVM or not
|
# Indicates, whether we're cross-compiling LLVM or not
|
||||||
LLVM_CROSS_COMPILING=@LLVM_CROSS_COMPILING@
|
LLVM_CROSS_COMPILING=@LLVM_CROSS_COMPILING@
|
||||||
|
@ -81,6 +81,11 @@ LLVMBuildMakeFrag := $(PROJ_OBJ_ROOT)/Makefile.llvmbuild
|
|||||||
LLVMConfigLibraryDependenciesInc := \
|
LLVMConfigLibraryDependenciesInc := \
|
||||||
$(PROJ_OBJ_ROOT)/tools/llvm-config-2/LibraryDependencies.inc
|
$(PROJ_OBJ_ROOT)/tools/llvm-config-2/LibraryDependencies.inc
|
||||||
|
|
||||||
|
# This is for temporary backwards compatibility.
|
||||||
|
ifndef TARGET_NATIVE_ARCH
|
||||||
|
TARGET_NATIVE_ARCH := $(ARCH)
|
||||||
|
endif
|
||||||
|
|
||||||
# The rule to create the LLVMBuild Makefile fragment as well as the llvm-config
|
# The rule to create the LLVMBuild Makefile fragment as well as the llvm-config
|
||||||
# library table.
|
# library table.
|
||||||
#
|
#
|
||||||
@ -92,7 +97,7 @@ LLVMConfigLibraryDependenciesInc := \
|
|||||||
$(LLVMBuildMakeFrag): $(PROJ_SRC_ROOT)/Makefile.rules
|
$(LLVMBuildMakeFrag): $(PROJ_SRC_ROOT)/Makefile.rules
|
||||||
$(Echo) Constructing LLVMBuild project information.
|
$(Echo) Constructing LLVMBuild project information.
|
||||||
$(Verb) $(LLVMBuildTool) \
|
$(Verb) $(LLVMBuildTool) \
|
||||||
--native-target "$(ARCH)" \
|
--native-target "$(TARGET_NATIVE_ARCH)" \
|
||||||
--enable-targets "$(TARGETS_TO_BUILD)" \
|
--enable-targets "$(TARGETS_TO_BUILD)" \
|
||||||
--write-library-table $(LLVMConfigLibraryDependenciesInc) \
|
--write-library-table $(LLVMConfigLibraryDependenciesInc) \
|
||||||
--write-make-fragment $(LLVMBuildMakeFrag)
|
--write-make-fragment $(LLVMBuildMakeFrag)
|
||||||
|
Loading…
Reference in New Issue
Block a user