From 83a3c18bdb2637b9eff9a0f510debfe9dd86d6cb Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Fri, 10 Jun 2016 17:34:08 +0300 Subject: [build] Update compdb & tidy for Linux & OS X --- scripts/clang-tidy.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'scripts') 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 } -- cgit v1.2.1