Skip to content

Commit c6c5b13

Browse files
committed
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.
1 parent 5ecaf6c commit c6c5b13

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build-llvm.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ if [ -n "$HOST" ]; then
188188
if [ -x "$native/llvm-config$suffix" ]; then
189189
CMAKEFLAGS="$CMAKEFLAGS -DLLVM_CONFIG_PATH=$native/llvm-config$suffix"
190190
fi
191+
if [ -x "$native/clang-pseudo-gen$suffix" ]; then
192+
CMAKEFLAGS="$CMAKEFLAGS -DCLANG_PSEUDO_GEN=$native/clang-pseudo-gen$suffix"
193+
fi
191194
fi
192195
CROSS_ROOT=$(cd $(dirname $(which $HOST-gcc))/../$HOST && pwd)
193196
CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_FIND_ROOT_PATH=$CROSS_ROOT"

0 commit comments

Comments
 (0)