Skip to content

Commit

Permalink
update _release-base
Browse files Browse the repository at this point in the history
  • Loading branch information
wusatosi committed Dec 11, 2024
1 parent 96a9e35 commit ad365b4
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"name": "_release-base",
"hidden": true,
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_CXX_FLAGS": "-O3"
"CMAKE_BUILD_TYPE": "RelWithDebInfo"
}
},
{
Expand All @@ -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"
}
},
Expand All @@ -46,7 +44,8 @@
"_release-base"
],
"cacheVariables": {
"CMAKE_CXX_COMPILER": "g++"
"CMAKE_CXX_COMPILER": "g++",
"CMAKE_CXX_FLAGS": "-O3"
}
},
{
Expand All @@ -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"
}
},
Expand All @@ -70,7 +68,8 @@
"_release-base"
],
"cacheVariables": {
"CMAKE_CXX_COMPILER": "clang++"
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_CXX_FLAGS": "-O3"
}
},
{
Expand All @@ -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"
}
}
Expand Down

0 comments on commit ad365b4

Please sign in to comment.