llvm.org GIT mirror llvm / a7de1d6
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 Daniel Dunbar 7 years ago
3 changed file(s) with 8 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
125125 $(MAKE) -C BuildTools \
126126 BUILD_DIRS_ONLY=1 \
127127 UNIVERSAL= \
128 ARCH="$(ARCH)" \
128 TARGET_NATIVE_ARCH="$(TARGET_NATIVE_ARCH)" \
129129 TARGETS_TO_BUILD="$(TARGETS_TO_BUILD)" \
130130 ENABLE_OPTIMIZED=$(ENABLE_OPTIMIZED) \
131131 ENABLE_PROFILING=$(ENABLE_PROFILING) \
106106
107107 # Target hardware architecture
108108 ARCH=@ARCH@
109 TARGET_NATIVE_ARCH := $(ARCH)
109110
110111 # Indicates, whether we're cross-compiling LLVM or not
111112 LLVM_CROSS_COMPILING=@LLVM_CROSS_COMPILING@
8080 LLVMConfigLibraryDependenciesInc := \
8181 $(PROJ_OBJ_ROOT)/tools/llvm-config-2/LibraryDependencies.inc
8282
83 # This is for temporary backwards compatibility.
84 ifndef TARGET_NATIVE_ARCH
85 TARGET_NATIVE_ARCH := $(ARCH)
86 endif
87
8388 # The rule to create the LLVMBuild Makefile fragment as well as the llvm-config
8489 # library table.
8590 #
9196 $(LLVMBuildMakeFrag): $(PROJ_SRC_ROOT)/Makefile.rules
9297 $(Echo) Constructing LLVMBuild project information.
9398 $(Verb) $(LLVMBuildTool) \
94 --native-target "$(ARCH)" \
99 --native-target "$(TARGET_NATIVE_ARCH)" \
95100 --enable-targets "$(TARGETS_TO_BUILD)" \
96101 --write-library-table $(LLVMConfigLibraryDependenciesInc) \
97102 --write-make-fragment $(LLVMBuildMakeFrag)