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).
This commit is contained in:
Martin Storsjö committed 2022-08-03 10:06:49 +03:00
1 parent 3d4e36806a
commit c49f3a5953
1 file changed
+3
+3
View File
@@ -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"