build: Compile all dependencies with C++23 (#3129)

This commit is contained in:
Ayaz Salikhov
2026-06-30 21:03:31 +01:00
committed by GitHub
parent bc556fa0e7
commit 9cf2d52fbb
6 changed files with 7 additions and 7 deletions

View File

@@ -22,10 +22,10 @@ on:
- .github/actions/conan/action.yml
- ".github/scripts/conan/**"
- "!.github/scripts/conan/regenerate_lockfile.sh"
- conanfile.py
- conan.lock
- conan/profiles/**
push:
branches: [develop]
paths:
@@ -33,10 +33,10 @@ on:
- .github/actions/conan/action.yml
- ".github/scripts/conan/**"
- "!.github/scripts/conan/regenerate_lockfile.sh"
- conanfile.py
- conan.lock
- conan/profiles/**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

View File

@@ -35,7 +35,7 @@ include(ClangTidy)
include(Linker)
add_library(clio_options INTERFACE)
target_compile_features(clio_options INTERFACE cxx_std_23) # Clio needs c++23 but deps can remain c++20 for now
target_compile_features(clio_options INTERFACE cxx_std_23)
target_include_directories(clio_options INTERFACE ${CMAKE_SOURCE_DIR}/src)
if(

View File

@@ -2,7 +2,7 @@
arch={{detect_api.detect_arch()}}
build_type=Release
compiler=apple-clang
compiler.cppstd=20
compiler.cppstd=23
compiler.libcxx=libc++
compiler.version=21.0
os=Macos

View File

@@ -22,4 +22,4 @@ rm -f conan.lock
# Create a new lockfile that is compatible with macOS.
# It should also work on Linux.
conan lock create . \
--profile:all=./conan/profiles/apple-clang-21.profile
--profile:all=./conan/lockfile/apple-clang-21.profile

View File

@@ -12,7 +12,7 @@ arch={{ arch }}
build_type=Debug
compiler={{compiler}}
compiler.version={{ compiler_version }}
compiler.cppstd=20
compiler.cppstd=23
{% if os == "Windows" %}
compiler.runtime=static
{% else %}

View File

@@ -104,7 +104,7 @@ It is implicitly used when running `conan` commands, you don't need to specify i
You have to update this file every time you add a new dependency or change a revision or version of an existing dependency.
To update a lockfile, run from the repository root: `./.github/scripts/conan/regenerate_lockfile.sh`
To update a lockfile, run from the repository root: `./conan/lockfile/regenerate.sh`
## Building Clio