[llvm-commits] [llvm] r85607 - /llvm/trunk/Makefile

Jim Grosbach grosbach at apple.com
Fri Oct 30 12:53:38 PDT 2009


Author: grosbach
Date: Fri Oct 30 14:53:38 2009
New Revision: 85607

URL: http://llvm.org/viewvc/llvm-project?rev=85607&view=rev
Log:
When cross-building, the CFLAGS and CXXFLAGS are for the target, and don't
apply to the build tools. If we want to allow build tool flags input, we
should have separate inputs (BUILD_CFLAGS and BUILD_CXXFLAGS, perhaps).

Modified:
    llvm/trunk/Makefile

Modified: llvm/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile?rev=85607&r1=85606&r2=85607&view=diff

==============================================================================
--- llvm/trunk/Makefile (original)
+++ llvm/trunk/Makefile Fri Oct 30 14:53:38 2009
@@ -95,6 +95,8 @@
 	$(Verb) if [ ! -f BuildTools/Makefile ]; then \
           $(MKDIR) BuildTools; \
 	  cd BuildTools ; \
+	  unset CFLAGS ; \
+	  unset CXXFLAGS ; \
 	  $(PROJ_SRC_DIR)/configure --build=$(BUILD_TRIPLE) \
 		--host=$(BUILD_TRIPLE) --target=$(BUILD_TRIPLE); \
 	  cd .. ; \





More information about the llvm-commits mailing list