configure: Fix cross-compiling LLVM for realz
Actually got it working this time, and it was again just a problem specifying the llvm-tblgen binary. We need to point it at the $CFG_BUILD target's tblgen and then we also needed to correct the path a bit.
This commit is contained in:
parent
366de839ae
commit
213f1638d9
3
configure
vendored
3
configure
vendored
@ -1681,9 +1681,10 @@ do
|
||||
fi
|
||||
|
||||
if [ "$t" != "$CFG_BUILD" ]; then
|
||||
# see http://llvm.org/docs/HowToCrossCompileLLVM.html
|
||||
CMAKE_ARGS="$CMAKE_ARGS -DCMAKE_CROSSCOMPILING=True"
|
||||
CMAKE_ARGS="$CMAKE_ARGS -DLLVM_TARGET_ARCH=$arch"
|
||||
CMAKE_ARGS="$CMAKE_ARGS -DLLVM_TABLEGEN=$LLVM_INST_DIR/bin/llvm-tablegen"
|
||||
CMAKE_ARGS="$CMAKE_ARGS -DLLVM_TABLEGEN=$CFG_BUILD_DIR/$CFG_BUILD/llvm/bin/llvm-tblgen"
|
||||
CMAKE_ARGS="$CMAKE_ARGS -DLLVM_DEFAULT_TARGET_TRIPLE=$t"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user