LoginSignup
1
1

More than 5 years have passed since last update.

Travis CI で clang++ -std=c++14 するときは

Posted at
.travis.yml
os:
  - osx
  - linux
script:
  - clang++ -std=c++14 app.cpp -o app

Travis CI で上記のようにしたら、linux ジョブが失敗し、以下のログが生成されました。

error: invalid value 'c++14' in '-std=c++14'

osx ジョブはちゃんと成功していました。linux 環境の clang が古いのかなと思って新しいのを入れました。

.travis.yml
matrix:
  include:
    - os: osx
      env: CXX=clang++
    - os: linux
      env: CXX=clang++-3.8
      addons:
        apt:
          packages: clang-3.8
          sources:
            - ubuntu-toolchain-r-test
            - llvm-toolchain-precise-3.8
script:
  - $CXX -std=c++14 app.cpp -o app

あっさり成功しました。

おわり

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1