build-llvm: Use a precompiled clang-pseudo-gen tool when cross compiling
This avoids needing to run the cmake configure for the nested native build. This tool (part of clang-tools-extra) is new in LLVM 15.0.0.
This commit is contained in:
1 parent
5ecaf6ce2c
commit
c6c5b137ed
1 file changed
+3
@@ -188,6 +188,9 @@ if [ -n "$HOST" ]; then
|
||||
if [ -x "$native/llvm-config$suffix" ]; then
|
||||
CMAKEFLAGS="$CMAKEFLAGS -DLLVM_CONFIG_PATH=$native/llvm-config$suffix"
|
||||
fi
|
||||
if [ -x "$native/clang-pseudo-gen$suffix" ]; then
|
||||
CMAKEFLAGS="$CMAKEFLAGS -DCLANG_PSEUDO_GEN=$native/clang-pseudo-gen$suffix"
|
||||
fi
|
||||
fi
|
||||
CROSS_ROOT=$(cd $(dirname $(which $HOST-gcc))/../$HOST && pwd)
|
||||
CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_FIND_ROOT_PATH=$CROSS_ROOT"
|
||||
|
||||
Reference in new issue
Block a user