aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2009-10-30 19:53:38 +0000
committerJim Grosbach <grosbach@apple.com>2009-10-30 19:53:38 +0000
commitd6d77da9dfee79811ba7d82f26adda9b5ae20922 (patch)
tree0649d1fff479292bf74041405bf85c38580dacb2 /Makefile
parent45795a3646741fea0da9973cad9e4d80e0cfc9a6 (diff)
downloadexternal_llvm-d6d77da9dfee79811ba7d82f26adda9b5ae20922.zip
external_llvm-d6d77da9dfee79811ba7d82f26adda9b5ae20922.tar.gz
external_llvm-d6d77da9dfee79811ba7d82f26adda9b5ae20922.tar.bz2
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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85607 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index cc7e550..671f92c 100644
--- a/Makefile
+++ b/Makefile
@@ -95,6 +95,8 @@ cross-compile-build-tools:
$(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 .. ; \