Update: Using C++26 with contracts enabled

This commit is contained in:
David Gil de Gómez Pérez
2026-08-12 13:47:50 +03:00
parent 206742e9b3
commit 41111dba30
6 changed files with 125 additions and 24 deletions
+17 -3
View File
@@ -10,11 +10,21 @@
"name": "default",
"displayName": "GCC 16 + C++26",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build",
"binaryDir": "${sourceDir}/cmake-build-debug-gcc-16-cpp26",
"toolchainFile": "${sourceDir}/cmake/toolchains/gcc-16.cmake",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_COMPILER": "/opt/homebrew/bin/gcc-16",
"CMAKE_CXX_COMPILER": "/opt/homebrew/bin/g++-16",
"COURSE_ENABLE_CONTRACTS": "ON"
}
},
{
"name": "release",
"displayName": "GCC 16 + C++26 (Release)",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/cmake-build-release-gcc-16-cpp26",
"toolchainFile": "${sourceDir}/cmake/toolchains/gcc-16.cmake",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"COURSE_ENABLE_CONTRACTS": "ON"
}
}
@@ -23,6 +33,10 @@
{
"name": "default",
"configurePreset": "default"
},
{
"name": "release",
"configurePreset": "release"
}
],
"testPresets": [