aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2008-10-02 22:56:44 +0000
committerJim Grosbach <grosbach@apple.com>2008-10-02 22:56:44 +0000
commit673612ec72e0e246ca671a3977666424b5ed77cc (patch)
tree2030e2081eafe70baeea869342ed46d853eea8b0 /Makefile
parent597f3f8c5d5ed4a848a3b15bb75a4fce2628759c (diff)
downloadexternal_llvm-673612ec72e0e246ca671a3977666424b5ed77cc.zip
external_llvm-673612ec72e0e246ca671a3977666424b5ed77cc.tar.gz
external_llvm-673612ec72e0e246ca671a3977666424b5ed77cc.tar.bz2
Add support for Canadian Cross builds where the host executables are not
runnable on the build machine. There are a few bits that need built for the build environment (TableGen). This patch builds those bits, and the associated libraries, for the build environment as well as the (usual) host environment. Thanks to Eric C. and Devang P. for pre-commit review. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56975 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 83b789f..58a5fe5 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,12 @@ EXTRA_DIST := test llvm.spec include win32 Xcode
include $(LEVEL)/Makefile.config
+# When cross-compiling, there are some things (tablegen) that need to
+# be build for the build system.
+ifeq ($(LLVM_CROSS_COMPILING),1)
+ BUILD_TARGET_DIRS := lib/System lib/Support utils
+endif
+
# llvm-gcc4 doesn't need runtime libs. llvm-gcc4 is the only supported one.
# FIXME: Remove runtime entirely once we have an understanding of where
# libprofile etc should go.