From 7748d27b95cdf267782fb46b68ec709d5eaccb13 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Wed, 28 May 2025 23:15:44 -0500 Subject: [PATCH] Add address sanitizer configurations to CMakePresets --- CMakePresets.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/CMakePresets.json b/CMakePresets.json index 440d1138..14595a91 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -142,6 +142,32 @@ "CMAKE_INSTALL_PREFIX": "${sourceDir}/build/${presetName}/Release/supercell-wx" } }, + { + "name": "linux-gcc-debug-asan", + "inherits": "linux-gcc-base", + "displayName": "Linux GCC Debug Address Sanitizer", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Debug", + "CMAKE_INSTALL_PREFIX": "${sourceDir}/build/${presetName}/Debug/supercell-wx", + "SCWX_ADDRESS_SANITIZER": { + "type": "BOOL", + "value": "ON" + } + } + }, + { + "name": "linux-gcc-release-asan", + "inherits": "linux-gcc-base", + "displayName": "Linux GCC Release Address Sanitizer", + "cacheVariables": { + "CMAKE_BUILD_TYPE": "Release", + "CMAKE_INSTALL_PREFIX": "${sourceDir}/build/${presetName}/Release/supercell-wx", + "SCWX_ADDRESS_SANITIZER": { + "type": "BOOL", + "value": "ON" + } + } + }, { "name": "ci-linux-gcc14", "inherits": "linux-gcc-base",