From 673612ec72e0e246ca671a3977666424b5ed77cc Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Thu, 2 Oct 2008 22:56:44 +0000 Subject: 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 --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 83b789fa22..58a5fe5e18 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. -- cgit v1.2.3