summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorShantonu Sen <ssen@apple.com>2009-09-02 23:52:23 +0000
committerShantonu Sen <ssen@apple.com>2009-09-02 23:52:23 +0000
commit5e869c353c01f168712ae33cb7de2e9ba5cdf658 (patch)
tree2a85171ae873e901bb439b3548fb58e85e2479d9 /Makefile
parent05bb5261d8154ec0b1bd0672beaa22c475ecc763 (diff)
downloadllvm-5e869c353c01f168712ae33cb7de2e9ba5cdf658.tar.gz
llvm-5e869c353c01f168712ae33cb7de2e9ba5cdf658.tar.bz2
llvm-5e869c353c01f168712ae33cb7de2e9ba5cdf658.tar.xz
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5d10f8e237..b8d4367e72 100644
--- a/Makefile
+++ b/Makefile
@@ -88,10 +88,19 @@ cross-compile-build-tools:
$(Verb) if [ ! -f BuildTools/Makefile ]; then \
$(MKDIR) BuildTools; \
cd BuildTools ; \
- $(PROJ_SRC_DIR)/configure ; \
+ $(PROJ_SRC_DIR)/configure --build=$(BUILD_TRIPLE) \
+ --host=$(BUILD_TRIPLE) --target=$(BUILD_TRIPLE); \
cd .. ; \
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
# Include the main makefile machinery.