From c6c5b137eddc86ff6cdf2cfd398657930b550676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 9 Jun 2022 00:50:51 +0300 Subject: [PATCH] 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. --- build-llvm.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-llvm.sh b/build-llvm.sh index 7290641..bf2958b 100755 --- a/build-llvm.sh +++ b/build-llvm.sh @@ -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"