# HG changeset patch # User John Donoghue # Date 1377127258 14400 # Node ID f9bb233a5ef8e16ba5aef07a94d62cd8fefdc171 # Parent 62dd70999e83b03ef816f1e2556bb7b805932ddc 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. diff -r 62dd70999e83 -r f9bb233a5ef8 src/llvm.mk --- 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