瀏覽代碼

Actually use clang++-3.4 (Travis)

Thomas Buck 10 年之前
父節點
當前提交
857b8542a8
共有 2 個檔案被更改,包括 4 行新增0 行删除
  1. 2
    0
      cmake/travis_install_linux.sh
  2. 2
    0
      cmake/travis_script_linux.sh

+ 2
- 0
cmake/travis_install_linux.sh 查看文件

@@ -1,7 +1,9 @@
1 1
 #!/bin/bash
2 2
 
3 3
 sudo apt-get -qq -y install libsdl2-dev libsdl2-ttf-dev libalut-dev libpng12-dev zlib1g-dev cmake
4
+
4 5
 if [ "$CC" = "gcc" ]; then sudo apt-get install gcc-4.8; fi
5 6
 if [ "$CXX" = "g++" ]; then sudo apt-get install g++-4.8; fi
7
+
6 8
 if [ "$CXX" = "clang++" ]; then sudo apt-get install --allow-unauthenticated -qq clang-3.4; fi
7 9
 

+ 2
- 0
cmake/travis_script_linux.sh 查看文件

@@ -3,5 +3,7 @@
3 3
 if [ "$CC" = "gcc" ]; then export CC="gcc-4.8"; fi
4 4
 if [ "$CXX" = "g++" ]; then export CXX="g++-4.8"; fi
5 5
 
6
+if [ "$CXX" = "clang++" ]; then export CXX="clang++-3.4"; fi
7
+
6 8
 mkdir build && cd build && cmake .. && make -j 4 && make check
7 9
 

Loading…
取消
儲存