summaryrefslogtreecommitdiffstats
path: root/third_party/rust/cubeb-sys/libcubeb/scan-build-install.sh
blob: 3e1b4969e7f459674d2d7c045c74e988a1e2040e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -x

CLANG_CHECKER_NAME=checker-278

cd ~

if [ ! -d ~/$CLANG_CHECKER_NAME ]
then
  curl http://clang-analyzer.llvm.org/downloads/$CLANG_CHECKER_NAME.tar.bz2 -o ~/$CLANG_CHECKER_NAME.tar.bz2
  tar -xf ~/$CLANG_CHECKER_NAME.tar.bz2
fi

export SCAN_BUILD_PATH=~/$CLANG_CHECKER_NAME/bin/scan-build

cd -