From ad365b4490d9f34f8f60a4976364d01f1aef11c6 Mon Sep 17 00:00:00 2001 From: River <26424577+wusatosi@users.noreply.github.com> Date: Wed, 11 Dec 2024 12:17:06 -0500 Subject: [PATCH] update _release-base --- CMakePresets.json | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index 245aa10..dc50cf1 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -21,8 +21,7 @@ "name": "_release-base", "hidden": true, "cacheVariables": { - "CMAKE_BUILD_TYPE": "RelWithDebInfo", - "CMAKE_CXX_FLAGS": "-O3" + "CMAKE_BUILD_TYPE": "RelWithDebInfo" } }, { @@ -34,7 +33,6 @@ ], "cacheVariables": { "CMAKE_CXX_COMPILER": "g++", - "CMAKE_BUILD_TYPE": "Debug", "CMAKE_CXX_FLAGS": "-fsanitize=address -fsanitize=pointer-compare -fsanitize=pointer-subtract -fsanitize=leak -fsanitize=undefined" } }, @@ -46,7 +44,8 @@ "_release-base" ], "cacheVariables": { - "CMAKE_CXX_COMPILER": "g++" + "CMAKE_CXX_COMPILER": "g++", + "CMAKE_CXX_FLAGS": "-O3" } }, { @@ -58,7 +57,6 @@ ], "cacheVariables": { "CMAKE_CXX_COMPILER": "clang++", - "CMAKE_BUILD_TYPE": "Debug", "CMAKE_CXX_FLAGS": "-fsanitize=address -fsanitize=pointer-compare -fsanitize=pointer-subtract -fsanitize=undefined" } }, @@ -70,7 +68,8 @@ "_release-base" ], "cacheVariables": { - "CMAKE_CXX_COMPILER": "clang++" + "CMAKE_CXX_COMPILER": "clang++", + "CMAKE_CXX_FLAGS": "-O3" } }, { @@ -89,10 +88,12 @@ { "name": "msvc-release", "displayName": "MSVC Release Build", - "inherits": ["_root-config"], + "inherits": [ + "_root-config", + "_release-base" + ], "cacheVariables": { "CMAKE_CXX_COMPILER": "cl", - "CMAKE_BUILD_TYPE": "RelWithDebInfo", "CMAKE_CXX_FLAGS": "/EHsc /permissive- /O2" } }