changeset 3239:f9bb233a5ef8

Compile and install native llvm-config when doing cross build. * src/llvm.mk: modify install of llvm-config to run make in native llvm build directory and install native built exe to the build tools.
author John Donoghue <john.donoghue@ieee.org>
date Wed, 21 Aug 2013 19:20:58 -0400
parents 62dd70999e83
children d99f6d03618c c8717bf2a128
files src/llvm.mk
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/llvm.mk	Wed Aug 21 14:36:01 2013 -0400
+++ b/src/llvm.mk	Wed Aug 21 19:20:58 2013 -0400
@@ -67,7 +67,8 @@
     $(MAKE) -C '$(1)/build' -j $(JOBS) intrinsics_gen
     $(MAKE) -C '$(1)/build' -j $(JOBS) install
     if [ $(MXE_NATIVE_BUILD) = no ]; then \
-      $(INSTALL) -m755 '$(HOST_BINDIR)/llvm-config' '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)llvm-config'; \
+      $(MAKE) -C $(1)/build/native/tools/llvm-config; \
+      $(INSTALL) -m755 '$(1)/build/native/bin/llvm-config' '$(BUILD_TOOLS_PREFIX)/bin/llvm-config'; \
     fi
 endef
 endif