From c49f3a595394acab85a538ac956c1fc7e0f9f142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Thu, 28 Jul 2022 00:32:18 +0300 Subject: [PATCH] build-llvm: Reuse the clang-tidy-confusable-chars-gen executable 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 (and the cmake setting for specifying the binary was backported after the 15.x branch was made, but before rc1 was tagged). --- build-llvm.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build-llvm.sh b/build-llvm.sh index cca1ea6..609c25d 100755 --- a/build-llvm.sh +++ b/build-llvm.sh @@ -190,6 +190,9 @@ if [ -n "$HOST" ]; then if [ -x "$native/clang-pseudo-gen$suffix" ]; then CMAKEFLAGS="$CMAKEFLAGS -DCLANG_PSEUDO_GEN=$native/clang-pseudo-gen$suffix" fi + if [ -x "$native/clang-tidy-confusable-chars-gen$suffix" ]; then + CMAKEFLAGS="$CMAKEFLAGS -DCLANG_TIDY_CONFUSABLE_CHARS_GEN=$native/clang-tidy-confusable-chars-gen$suffix" + fi fi CROSS_ROOT=$(cd $(dirname $(command -v $HOST-gcc))/../$HOST && pwd) CMAKEFLAGS="$CMAKEFLAGS -DCMAKE_FIND_ROOT_PATH=$CROSS_ROOT"