Skip to content

Commit 2c056cd

Browse files
committed
replace debwithopt with optimizeddebug
1 parent 9b7d498 commit 2c056cd

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

docs/modules/ROOT/pages/install.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ Choose one of the presets from `CMakePresets.json` or edit the variants in `CMak
325325
[NOTE]
326326
====
327327
Developers might also want to build a custom `Debug` LLVM configuration including optimizations, which allows for faster execution of tests.
328-
The `relwithdebinfo` and `debwithopt` presets are provided for this purpose.
328+
The `relwithdebinfo` and `optimizeddebug` presets are provided for this purpose.
329329
Or if you prefer using the command line, set `CMAKE_CONFIGURATION_TYPES` or `CMAKE_BUILD_TYPE` to `Debug` and manually include the optimization flags to `-D CMAKE_CXX_FLAGS="/O2 /Zi"` (MSVC) or `-D CMAKE_CXX_FLAGS="-Og -g"`.
330330
331331
This should give you an optimized build with all debug features and flags, such as an appropriate https://learn.microsoft.com/en-us/cpp/standard-library/iterator-debug-level[`_ITERATOR_DEBUG_LEVEL`] and the `/MDd` flag in MSVC.

third-party/llvm/CMakePresets.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@
5757
}
5858
},
5959
{
60-
"name": "debwithopt",
60+
"name": "optimizeddebug",
6161
"inherits": "debug",
62-
"displayName": "DebWithOpt-Base",
62+
"displayName": "OptimizedDebug-Base",
6363
"description": "Debug Config with Release Optimization",
6464
"cacheVariables": {
6565
"CMAKE_BUILD_TYPE": "Debug"
@@ -104,12 +104,12 @@
104104
}
105105
},
106106
{
107-
"name": "debwithopt-win",
107+
"name": "optimizeddebug-win",
108108
"inherits": [
109109
"debug-win",
110-
"debwithopt"
110+
"optimizeddebug"
111111
],
112-
"displayName": "DebWithOptde-Base-Win",
112+
"displayName": "OptimizedDebug-Base-Win",
113113
"description": "Debug Config with Release Optimization",
114114
"cacheVariables": {
115115
"CMAKE_BUILD_TYPE": "Debug",
@@ -151,12 +151,12 @@
151151
}
152152
},
153153
{
154-
"name": "debwithopt-unix",
154+
"name": "optimizeddebug-unix",
155155
"inherits": [
156156
"debug-unix",
157-
"debwithopt"
157+
"optimizeddebug"
158158
],
159-
"displayName": "DebWithOpt-Base-Unix",
159+
"displayName": "OptimizedDebug-Base-Unix",
160160
"description": "Debug Config with Release Optimization",
161161
"cacheVariables": {
162162
"CMAKE_BUILD_TYPE": "Debug",

third-party/llvm/CMakeUserPresets.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
}
1111
},
1212
{
13-
"name": "debwithopt-msvc",
14-
"inherits": "debwithopt-win",
15-
"binaryDir": "${sourceDir}/build/MSVC/DebWithOpt",
13+
"name": "optimizeddebug-msvc",
14+
"inherits": "optimizeddebug-win",
15+
"binaryDir": "${sourceDir}/build/MSVC/OptimizedDebug",
1616
"cacheVariables": {
17-
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install/MSVC/DebWithOpt"
17+
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install/MSVC/OptimizedDebug"
1818
},
1919
"architecture": {
2020
"value": "x64",
@@ -67,14 +67,14 @@
6767
}
6868
},
6969
{
70-
"name": "debwithopt-linux",
70+
"name": "optimizeddebug-linux",
7171
"inherits": [
72-
"debwithopt-unix",
72+
"optimizeddebug-unix",
7373
"debug-linux"
7474
],
75-
"binaryDir": "${sourceDir}/build/Linux/DebWithOpt",
75+
"binaryDir": "${sourceDir}/build/Linux/OptimizedDebug",
7676
"cacheVariables": {
77-
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install/Linux/DebWithOpt"
77+
"CMAKE_INSTALL_PREFIX": "${sourceDir}/install/Linux/OptimizedDebug"
7878
}
7979
},
8080
{

0 commit comments

Comments
 (0)