llvm.org GIT mirror llvm / 5e869c3
Improve support for cross-hosted builds of LLVM. --build=triple and other configure options are passed to the BuildTools/ sub-invocation more consistently git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80854 91177308-0d34-0410-b5e6-96231b3b80d8 Shantonu Sen 10 years ago
2 changed file(s) with 14 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
8787 $(Verb) if [ ! -f BuildTools/Makefile ]; then \
8888 $(MKDIR) BuildTools; \
8989 cd BuildTools ; \
90 $(PROJ_SRC_DIR)/configure ; \
90 $(PROJ_SRC_DIR)/configure --build=$(BUILD_TRIPLE) \
91 --host=$(BUILD_TRIPLE) --target=$(BUILD_TRIPLE); \
9192 cd .. ; \
9293 fi; \
93 ($(MAKE) -C BuildTools BUILD_DIRS_ONLY=1 ) || exit 1;
94 ($(MAKE) -C BuildTools \
95 BUILD_DIRS_ONLY=1 \
96 UNIVERSAL= \
97 ENABLE_OPTIMIZED=$(ENABLE_OPTIMIZED) \
98 ENABLE_PROFILING=$(ENABLE_PROFILING) \
99 ENABLE_COVERAGE=$(ENABLE_COVERAGE) \
100 DISABLE_ASSERTIONS=$(DISABLE_ASSERTIONS) \
101 ENABLE_EXPENSIVE_CHECKS=$(ENABLE_EXPENSIVE_CHECKS) \
102 ) || exit 1;
94103 endif
95104
96105 # Include the main makefile machinery.
108108 # call if we're cross-compiling).
109109 BUILD_CC=@BUILD_CC@
110110 BUILD_CXX=@BUILD_CXX@
111
112 # Triple for configuring build tools when cross-compiling
113 BUILD_TRIPLE=@build@
111114
112115 # Target triple (cpu-vendor-os) for which we should generate code
113116 TARGET_TRIPLE=@target@