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:
1 parent
3d4e36806a
commit
c49f3a5953
1 file changed
+3
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user