summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-10 17:34:08 +0300
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-06-10 17:35:01 +0300
commit83a3c18bdb2637b9eff9a0f510debfe9dd86d6cb (patch)
tree8208e5c6f28f836aaef121d70203efe74e1354b0 /scripts
parent07da939a76e3bc8953b675a3bbeb2727c8f0dde4 (diff)
downloadqtlocation-mapboxgl-83a3c18bdb2637b9eff9a0f510debfe9dd86d6cb.tar.gz
[build] Update compdb & tidy for Linux & OS X
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/clang-tidy.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/clang-tidy.sh b/scripts/clang-tidy.sh
index 9420518747..76773e475a 100755
--- a/scripts/clang-tidy.sh
+++ b/scripts/clang-tidy.sh
@@ -12,6 +12,11 @@ command -v ${CLANG_TIDY:-clang-tidy} >/dev/null 2>&1 || {
if [ -z ${CLANG_TIDY} ]; then
echo "Alternatively, you can set CLANG_TIDY to point to clang-tidy."
fi
+ if [ `uname -s` = 'Linux' ]; then
+ echo "On Debian-based distros, you can install them via 'apt-get install clang-tidy'"
+ elif [ `uname -s` = 'Darwin' ]; then
+ echo "On OS X, you can install them via 'brew install llvm --with-clang --with-clang-extra-tools'"
+ fi
exit 1
}