For PR814:
Provide support for making cross-compiling builds. See the PR for details.
Patch provided by Anton Korobeynikov. Thanks, Anton!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29309 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Makefile.config.in b/Makefile.config.in
index d1efb2b..feaf815 100644
--- a/Makefile.config.in
+++ b/Makefile.config.in
@@ -97,6 +97,13 @@
# Target hardware architecture
ARCH=@ARCH@
+# Indicates, whether we're cross-compiling LLVM or not
+LLVM_CROSS_COMPILING=@LLVM_CROSS_COMPILING@
+
+# Executable file extension for build platform (mainly for
+# tablegen call if we're cross-compiling).
+BUILD_EXEEXT=@BUILD_EXEEXT@
+
# Target triple (cpu-vendor-os) for which we should generate code
TARGET_TRIPLE=@target@
@@ -214,10 +221,10 @@
# Enable JIT for this platform
TARGET_HAS_JIT = @TARGET_HAS_JIT@
-# Shared library extension for this platform.
+# Shared library extension for host platform.
SHLIBEXT = @SHLIBEXT@
-# Executable file extension for this platform.
+# Executable file extension for host platform.
EXEEXT = @EXEEXT@
# Things we just assume are "there"