Update: Using C++26 with contracts enabled

This commit is contained in:
David Gil de Gómez Pérez
2026-08-12 13:28:20 +03:00
parent 583f8d73db
commit 206742e9b3
2 changed files with 52 additions and 80 deletions
+1 -22
View File
@@ -8,19 +8,9 @@
"configurePresets": [
{
"name": "default",
"displayName": "Default (system compiler)",
"displayName": "GCC 16 + C++26",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"COURSE_ENABLE_CONTRACTS": "ON"
}
},
{
"name": "gcc26-contracts",
"displayName": "GCC 16 + C++26 contracts (recommended)",
"generator": "Unix Makefiles",
"binaryDir": "${sourceDir}/build-gcc26",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_COMPILER": "/opt/homebrew/bin/gcc-16",
@@ -33,10 +23,6 @@
{
"name": "default",
"configurePreset": "default"
},
{
"name": "gcc26-contracts",
"configurePreset": "gcc26-contracts"
}
],
"testPresets": [
@@ -46,13 +32,6 @@
"output": {
"outputOnFailure": true
}
},
{
"name": "gcc26-contracts",
"configurePreset": "gcc26-contracts",
"output": {
"outputOnFailure": true
}
}
]
}