Enable clang-15
This commit is contained in:
parent
c865cc5917
commit
f2c1305cee
96
.github/workflows/osrm-backend.yml
vendored
96
.github/workflows/osrm-backend.yml
vendored
@ -148,16 +148,16 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- name: gcc-13-debug-cov
|
# - name: gcc-13-debug-cov
|
||||||
continue-on-error: false
|
# continue-on-error: false
|
||||||
node: 20
|
# node: 20
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
BUILD_TOOLS: ON
|
# BUILD_TOOLS: ON
|
||||||
BUILD_TYPE: Debug
|
# BUILD_TYPE: Debug
|
||||||
CCOMPILER: gcc-13
|
# CCOMPILER: gcc-13
|
||||||
CUCUMBER_TIMEOUT: 20000
|
# CUCUMBER_TIMEOUT: 20000
|
||||||
CXXCOMPILER: g++-13
|
# CXXCOMPILER: g++-13
|
||||||
ENABLE_COVERAGE: ON
|
# ENABLE_COVERAGE: ON
|
||||||
|
|
||||||
# - name: clang-15-debug-asan-ubsan
|
# - name: clang-15-debug-asan-ubsan
|
||||||
# continue-on-error: false
|
# continue-on-error: false
|
||||||
@ -173,15 +173,15 @@ jobs:
|
|||||||
# OSRM_CONNECTION_RETRIES: 10
|
# OSRM_CONNECTION_RETRIES: 10
|
||||||
# OSRM_CONNECTION_EXP_BACKOFF_COEF: 1.5
|
# OSRM_CONNECTION_EXP_BACKOFF_COEF: 1.5
|
||||||
|
|
||||||
# - name: clang-15-release
|
- name: clang-15-release
|
||||||
# continue-on-error: false
|
continue-on-error: false
|
||||||
# node: 18
|
node: 18
|
||||||
# runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
# BUILD_TOOLS: ON
|
BUILD_TOOLS: ON
|
||||||
# BUILD_TYPE: Release
|
BUILD_TYPE: Release
|
||||||
# CCOMPILER: clang-15
|
CCOMPILER: clang-15
|
||||||
# CXXCOMPILER: clang++-15
|
CXXCOMPILER: clang++-15
|
||||||
# CUCUMBER_TIMEOUT: 60000
|
CUCUMBER_TIMEOUT: 60000
|
||||||
|
|
||||||
# - name: clang-15-debug
|
# - name: clang-15-debug
|
||||||
# continue-on-error: false
|
# continue-on-error: false
|
||||||
@ -245,37 +245,37 @@ jobs:
|
|||||||
# CXXCOMPILER: clang++-15
|
# CXXCOMPILER: clang++-15
|
||||||
# ENABLE_CONAN: ON
|
# ENABLE_CONAN: ON
|
||||||
|
|
||||||
- name: gcc-13-release
|
# - name: gcc-13-release
|
||||||
continue-on-error: false
|
# continue-on-error: false
|
||||||
node: 20
|
# node: 20
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
BUILD_TOOLS: ON
|
# BUILD_TOOLS: ON
|
||||||
BUILD_TYPE: Release
|
# BUILD_TYPE: Release
|
||||||
CCOMPILER: gcc-13
|
# CCOMPILER: gcc-13
|
||||||
CXXCOMPILER: g++-13
|
# CXXCOMPILER: g++-13
|
||||||
ENABLE_BENCHMARKS: ON
|
# ENABLE_BENCHMARKS: ON
|
||||||
CXXFLAGS: '-Wno-array-bounds -Wno-uninitialized'
|
# CXXFLAGS: '-Wno-array-bounds -Wno-uninitialized'
|
||||||
|
|
||||||
- name: gcc-12-release
|
# - name: gcc-12-release
|
||||||
continue-on-error: false
|
# continue-on-error: false
|
||||||
node: 20
|
# node: 20
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
BUILD_TOOLS: ON
|
# BUILD_TOOLS: ON
|
||||||
BUILD_TYPE: Release
|
# BUILD_TYPE: Release
|
||||||
CCOMPILER: gcc-12
|
# CCOMPILER: gcc-12
|
||||||
CXXCOMPILER: g++-12
|
# CXXCOMPILER: g++-12
|
||||||
ENABLE_BENCHMARKS: ON
|
# ENABLE_BENCHMARKS: ON
|
||||||
CXXFLAGS: '-Wno-array-bounds -Wno-uninitialized'
|
# CXXFLAGS: '-Wno-array-bounds -Wno-uninitialized'
|
||||||
|
|
||||||
- name: gcc-11-release
|
# - name: gcc-11-release
|
||||||
continue-on-error: false
|
# continue-on-error: false
|
||||||
node: 20
|
# node: 20
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
BUILD_TOOLS: ON
|
# BUILD_TOOLS: ON
|
||||||
BUILD_TYPE: Release
|
# BUILD_TYPE: Release
|
||||||
CCOMPILER: gcc-11
|
# CCOMPILER: gcc-11
|
||||||
CXXCOMPILER: g++-11
|
# CXXCOMPILER: g++-11
|
||||||
ENABLE_BENCHMARKS: ON
|
# ENABLE_BENCHMARKS: ON
|
||||||
|
|
||||||
# - name: conan-linux-release-node
|
# - name: conan-linux-release-node
|
||||||
# build_node_package: true
|
# build_node_package: true
|
||||||
|
@ -4,8 +4,9 @@ set(CMAKE_CXX_STANDARD 20)
|
|||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
|
||||||
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -std=c++20")
|
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++ -std=c++20")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR AND NOT MSVC_IDE)
|
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR AND NOT MSVC_IDE)
|
||||||
message(FATAL_ERROR "In-source builds are not allowed.
|
message(FATAL_ERROR "In-source builds are not allowed.
|
||||||
|
Loading…
Reference in New Issue
Block a user