mirror of
https://github.com/transmission/transmission.git
synced 2026-02-14 23:19:34 +00:00
Adding xcode toolchain lookup. (#8342)
This commit is contained in:
@@ -53,6 +53,15 @@ for name in ${clang_format_exe_names[@]}; do
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# Xcode toolchain lookup
|
||||
if [ -z "${clang_format_exe}" ]; then
|
||||
xcrun=$(command -v xcrun)
|
||||
if [ "$?" -eq 0 ]; then
|
||||
clang_format_exe=$("$xcrun" --find clang-format)
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "${clang_format_exe}" ]; then
|
||||
echo "error: clang-format not found";
|
||||
exit 1;
|
||||
|
||||
Reference in New Issue
Block a user