Update for clang-12

This commit is contained in:
Danny Robson 2021-04-19 14:53:36 +10:00
parent 15f5db46d1
commit 002f202604
2 changed files with 5 additions and 7 deletions

View File

@ -3,7 +3,7 @@ os=Linux
arch=x86_64 arch=x86_64
compiler=clang compiler=clang
compiler.version=11 compiler.version=12
compiler.libcxx=libc++ compiler.libcxx=libc++
build_type=Release build_type=Release
@ -13,5 +13,5 @@ build_type=Release
[build_requires] [build_requires]
[env] [env]
CC=clang-11 CC=clang-12
CXX=clang++-11 CXX=clang++-12

View File

@ -8,8 +8,6 @@ from dataclasses import dataclass, field
from typing import Dict, List, Optional from typing import Dict, List, Optional
CLANG_VERSION = 11
@dataclass @dataclass
class Option: class Option:
@ -58,8 +56,8 @@ OPTIONS['gcc'] = Option(
OPTIONS['clang'] = Option( OPTIONS['clang'] = Option(
vars={ vars={
'CMAKE_CXX_COMPILER': f'clang++-{CLANG_VERSION}', 'CMAKE_CXX_COMPILER': f'clang++',
'CMAKE_C_COMPILER': f'clang-{CLANG_VERSION}', 'CMAKE_C_COMPILER': f'clang',
#'CMAKE_CXX_FLAGS': '-fuse-ld=lld', #'CMAKE_CXX_FLAGS': '-fuse-ld=lld',
}, },
compiler='clang', compiler='clang',