Skip to content

Commit c780184

Browse files
committedNov 20, 2015
Merge pull request #2488 from nyalldawson/clang
[travis] Use newer clang 3.7 for linux builds
2 parents 00ea968 + 54cf64b commit c780184

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
 

‎ci/travis/linux/before_install.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
export DEBIAN_FRONTEND=noninteractive
2+
3+
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
4+
sudo add-apt-repository 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.7 main' -y
5+
26
sudo add-apt-repository ppa:ubuntugis/ppa -y
37
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable -y # For postgresql-9.1-postgis-2.1
48
sudo add-apt-repository ppa:grass/grass-stable -y
59
sudo add-apt-repository ppa:smspillaz/cmake-3.0.2 -y
610
sudo add-apt-repository ppa:kedazo/doxygen-updates-precise -y # For doxygen 1.8.8
11+
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
712
sudo apt-get update -qq
813
sudo apt-get install --force-yes --no-install-recommends --no-install-suggests \
914
bison \
@@ -54,5 +59,11 @@ sudo apt-get install --force-yes --no-install-recommends --no-install-suggests \
5459
xfonts-scalable \
5560
xvfb \
5661
postgresql-9.1-postgis-2.1/precise # from ubuntugis-unstable, not pgdg
62+
63+
#update clang
64+
sudo apt-get install --force-yes llvm-3.7 llvm-3.7-dev clang-3.7 libstdc++-4.9-dev
65+
export CXX="clang++-3.7"
66+
export CC="clang-3.7"
67+
5768
cmake --version
5869
clang --version

‎ci/travis/linux/install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
mkdir build
22
cd build
3+
export CXX="clang++-3.7"
4+
export CC="clang-3.7"
35
cmake -DWITH_SERVER=ON \
46
-DWITH_STAGED_PLUGINS=OFF \
57
-DWITH_GRASS=ON \

0 commit comments

Comments
 (0)
Please sign in to comment.