travis: upgrade to llvm 12
MODIFY
.travis.yml
.travis.yml
@@ -59,23 +59,23 @@ matrix:
dist: focal
addons: *gcc10
- - env: CMAKE_CXX_COMPILER=clang++-11 CMAKE_BUILD_TYPE=Debug CMAKE_CXX_FLAGS=-fsanitize=address,undefined
+ - env: CMAKE_CXX_COMPILER=clang++-12 CMAKE_BUILD_TYPE=Debug CMAKE_CXX_FLAGS=-fsanitize=address,undefined
os: linux
dist: focal
- addons: &clang11
+ addons: &clang12
apt:
sources:
- sourceline: "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main"
key_url: "https://apt.llvm.org/llvm-snapshot.gpg.key"
packages:
- *default_packages
- - clang-11
+ - clang-12
- g++-10
- - env: CMAKE_CXX_COMPILER=clang++-11 CMAKE_BUILD_TYPE=Release
+ - env: CMAKE_CXX_COMPILER=clang++-12 CMAKE_BUILD_TYPE=Release
os: linux
dist: focal
- addons: *clang11
+ addons: *clang12
- env: CMAKE_BUILD_TYPE=Debug CMAKE_CXX_FLAGS=-fsanitize=address,undefined
os: osx

travis: upgrade to llvm 12