diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-10-30 10:15:14 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-29 19:15:14 -0700 |
| commit | 44dc5ea202ac43cd4f18c268e95143c2a23f5d26 (patch) | |
| tree | 7faeaf99ddda7f5ee223c994f730cac0e8822fe3 /CMakePresets.json | |
| parent | 613a29affe272772dfe0c463d866fb0b8c1d42ee (diff) | |
Put debug symbols in releases (#5370)
Diffstat (limited to 'CMakePresets.json')
| -rw-r--r-- | CMakePresets.json | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/CMakePresets.json b/CMakePresets.json index 47a733ee2..0e53295e7 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -18,7 +18,7 @@ { "name": "emscripten", "description": "Emscripten-based Wasm build", - "generator": "ninja", + "generator": "Ninja Multi-Config", "binaryDir": "${sourceDir}/build.em", "cacheVariables": { "SLANG_SLANG_LLVM_FLAVOR": "DISABLE", @@ -34,7 +34,8 @@ "description": "Options specific for MSVC", "cacheVariables": { "CMAKE_C_FLAGS_INIT": "-D_ITERATOR_DEBUG_LEVEL=0 /MP", - "CMAKE_CXX_FLAGS_INIT": "-D_ITERATOR_DEBUG_LEVEL=0 /MP" + "CMAKE_CXX_FLAGS_INIT": "-D_ITERATOR_DEBUG_LEVEL=0 /MP", + "CMAKE_DEFAULT_BUILD_TYPE": "RelWithDebInfo" } }, { @@ -87,6 +88,11 @@ "configuration": "Release" }, { + "name": "releaseWithDebugInfo", + "configurePreset": "default", + "configuration": "RelWithDebInfo" + }, + { "name": "emscripten", "configurePreset": "emscripten", "configuration": "Release", @@ -133,6 +139,14 @@ "packageDirectory": "dist-release" }, { + "name": "releaseWithDebugInfo", + "inherits": "base", + "configurations": [ + "RelWithDebInfo" + ], + "packageDirectory": "dist-releaseWithDebugInfo" + }, + { "name": "debug", "inherits": "base", "configurations": [ @@ -195,6 +209,23 @@ ] }, { + "name": "releaseWithDebugInfo", + "steps": [ + { + "type": "configure", + "name": "default" + }, + { + "type": "build", + "name": "releaseWithDebugInfo" + }, + { + "type": "package", + "name": "releaseWithDebugInfo" + } + ] + }, + { "name": "generators", "steps": [ { |
