Use update-alternatives for clang++
This commit is contained in:
parent
cfb3de0628
commit
f6f37692f0
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
# http://askubuntu.com/a/497033
|
# http://askubuntu.com/a/497033
|
||||||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
||||||
@ -20,8 +20,9 @@ packages="$packages clang-3.6++"
|
|||||||
sudo apt-get install -y $packages
|
sudo apt-get install -y $packages
|
||||||
|
|
||||||
# Why doesn't clang do this for us?
|
# Why doesn't clang do this for us?
|
||||||
[ ! -e /usr/bin/clang++ ] && sudo ln -s /usr/bin/clang++-3.6 /usr/bin/clang++
|
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.6 10
|
||||||
|
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 10
|
||||||
|
|
||||||
# Build it!
|
# Build it!
|
||||||
cd /vagrant/premake
|
cd /vagrant/premake
|
||||||
/bin/bash gmake.sh && { cd gmake; make; }
|
./gmake.sh && { cd gmake; make; }
|
||||||
|
Loading…
Reference in New Issue
Block a user