Skip to content

Commit 8258a27

Browse files
committed
Pin sanitizer flags OFF in standard presets
Prevents stale BUILD_WITH_ASAN/BUILD_WITH_VALGRIND values in the CMake cache from leaking into default/release/debug configure runs after a prior sanitizer preset.
1 parent 9daab27 commit 8258a27

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

CMakePresets.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,29 @@
1212
"description": "Default preset — uses 'build/' as the binary directory so that all tools (command-line, Visual Studio, CLion, VS Code) share the same layout.",
1313
"binaryDir": "${sourceDir}/build",
1414
"cacheVariables": {
15-
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install"
15+
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install",
16+
"BUILD_WITH_ASAN": "OFF",
17+
"BUILD_WITH_VALGRIND": "OFF"
1618
}
1719
},
1820
{
1921
"name": "release",
2022
"displayName": "Release",
2123
"inherits": "default",
2224
"cacheVariables": {
23-
"CMAKE_BUILD_TYPE": "Release"
25+
"CMAKE_BUILD_TYPE": "Release",
26+
"BUILD_WITH_ASAN": "OFF",
27+
"BUILD_WITH_VALGRIND": "OFF"
2428
}
2529
},
2630
{
2731
"name": "debug",
2832
"displayName": "Debug",
2933
"inherits": "default",
3034
"cacheVariables": {
31-
"CMAKE_BUILD_TYPE": "Debug"
35+
"CMAKE_BUILD_TYPE": "Debug",
36+
"BUILD_WITH_ASAN": "OFF",
37+
"BUILD_WITH_VALGRIND": "OFF"
3238
}
3339
},
3440
{

0 commit comments

Comments
 (0)