1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Improve support for cross-hosted builds of LLVM.

--build=triple and other configure options are passed
to the BuildTools/ sub-invocation more consistently

llvm-svn: 80854
This commit is contained in:
Shantonu Sen 2009-09-02 23:52:23 +00:00
parent d7f58a6cb0
commit 4b392bc853
2 changed files with 14 additions and 2 deletions

View File

@ -88,10 +88,19 @@ cross-compile-build-tools:
$(Verb) if [ ! -f BuildTools/Makefile ]; then \ $(Verb) if [ ! -f BuildTools/Makefile ]; then \
$(MKDIR) BuildTools; \ $(MKDIR) BuildTools; \
cd BuildTools ; \ cd BuildTools ; \
$(PROJ_SRC_DIR)/configure ; \ $(PROJ_SRC_DIR)/configure --build=$(BUILD_TRIPLE) \
--host=$(BUILD_TRIPLE) --target=$(BUILD_TRIPLE); \
cd .. ; \ cd .. ; \
fi; \ fi; \
($(MAKE) -C BuildTools BUILD_DIRS_ONLY=1 ) || exit 1; ($(MAKE) -C BuildTools \
BUILD_DIRS_ONLY=1 \
UNIVERSAL= \
ENABLE_OPTIMIZED=$(ENABLE_OPTIMIZED) \
ENABLE_PROFILING=$(ENABLE_PROFILING) \
ENABLE_COVERAGE=$(ENABLE_COVERAGE) \
DISABLE_ASSERTIONS=$(DISABLE_ASSERTIONS) \
ENABLE_EXPENSIVE_CHECKS=$(ENABLE_EXPENSIVE_CHECKS) \
) || exit 1;
endif endif
# Include the main makefile machinery. # Include the main makefile machinery.

View File

@ -110,6 +110,9 @@ BUILD_EXEEXT=@BUILD_EXEEXT@
BUILD_CC=@BUILD_CC@ BUILD_CC=@BUILD_CC@
BUILD_CXX=@BUILD_CXX@ BUILD_CXX=@BUILD_CXX@
# Triple for configuring build tools when cross-compiling
BUILD_TRIPLE=@build@
# Target triple (cpu-vendor-os) for which we should generate code # Target triple (cpu-vendor-os) for which we should generate code
TARGET_TRIPLE=@target@ TARGET_TRIPLE=@target@