| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | ## borrowed from Gamgee project: https://github.com/broadinstitute/gamgee/blob/master/.travis_scripts/clang.sh |
| 4 | |
| 5 | echoscip-shell system . . echo. "...building with clang" |
| 6 | |
| 7 | wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudoscip-shell system . . sudo. apt-key add - |
| 8 | sudoscip-shell system . . sudo. apt-add-repository 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.5 main' |
| 9 | sudoscip-shell system . . sudo. apt-get -qq update |
| 10 | sudoscip-shell system . . sudo. apt-get -qq --force-yes install clang-3.5 clang-modernize-3.5 # clang-format-3.5 |
| 11 | sudoscip-shell system . . sudo. update-alternatives --install /usr/bin/clang++scip-shell filesystem . . `/usr/bin/clang++`. clang++ /usr/bin/clang++-3.5scip-shell filesystem . . `/usr/bin/clang++-3.5`. 1 |
| 12 | sudoscip-shell system . . sudo. rm /usr/local/clang-3.4/bin/clang++scip-shell filesystem . . `/usr/local/clang-3.4/bin/clang++`. |