[llvm-commits] [llvm] r80854 - in /llvm/trunk: Makefile Makefile.config.in
Shantonu Sen
ssen at apple.com
Wed Sep 2 16:52:23 PDT 2009
Author: ssen
Date: Wed Sep 2 18:52:23 2009
New Revision: 80854
URL: http://llvm.org/viewvc/llvm-project?rev=80854&view=rev
Log:
Improve support for cross-hosted builds of LLVM.
--build=triple and other configure options are passed
to the BuildTools/ sub-invocation more consistently
Modified:
llvm/trunk/Makefile
llvm/trunk/Makefile.config.in
Modified: llvm/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile?rev=80854&r1=80853&r2=80854&view=diff
==============================================================================
--- llvm/trunk/Makefile (original)
+++ llvm/trunk/Makefile Wed Sep 2 18:52:23 2009
@@ -88,10 +88,19 @@
$(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.
Modified: llvm/trunk/Makefile.config.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.config.in?rev=80854&r1=80853&r2=80854&view=diff
==============================================================================
--- llvm/trunk/Makefile.config.in (original)
+++ llvm/trunk/Makefile.config.in Wed Sep 2 18:52:23 2009
@@ -110,6 +110,9 @@
BUILD_CC=@BUILD_CC@
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=@target@
More information about the llvm-commits
mailing list