diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-12-06 15:55:48 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-06 07:55:48 +0000 |
| commit | 22b64a446c8c37cc0b3670eb117b64575fc54d2f (patch) | |
| tree | c61fca70d0973ca0f8ebe7dd908344983e4aca02 /CMakePresets.json | |
| parent | 7dabfa76ccfb396e9d2019e2b6e01259d1661dc5 (diff) | |
Split debug info for all targets (#5732)
* Split debug info for all targets
Work towards https://github.com/shader-slang/slang/issues/5724
* release separate debug info
Closes https://github.com/shader-slang/slang/issues/5724
* Add split debug info support for MacOS
* Add SLANG_ENABLE_SPLIT_DEBUG_INFO option
* Sign and package debug info on MacOS
* Set --build-id where available
* Correct debug info installing
* Keep cpack macos signing workaround
* Neaten cmake
* Disable sccache if building split debug info on Windows
* Only repack necessary files on MacOS releases
Diffstat (limited to 'CMakePresets.json')
| -rw-r--r-- | CMakePresets.json | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/CMakePresets.json b/CMakePresets.json index 15bac9f44..b81309af4 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -119,7 +119,15 @@ "generators": ["ZIP"], "variables": { "CPACK_PACKAGE_FILE_NAME": "slang", - "CPACK_COMPONENTS_ALL": "Unspecified;metadata;debug-info;slang-llvm" + "CPACK_COMPONENTS_ALL": "Unspecified;metadata;slang-llvm" + } + }, + { + "name": "base-debug-info", + "inherits": "base", + "variables": { + "CPACK_PACKAGE_FILE_NAME": "slang-debug-info", + "CPACK_COMPONENTS_ALL": "debug-info" } }, { @@ -141,6 +149,24 @@ "packageDirectory": "dist-debug" }, { + "name": "release-debug-info", + "inherits": "base-debug-info", + "configurations": ["Release"], + "packageDirectory": "dist-release-debug-info" + }, + { + "name": "releaseWithDebugInfo-debug-info", + "inherits": "base-debug-info", + "configurations": ["RelWithDebInfo"], + "packageDirectory": "dist-releaseWithDebugInfo-debug-info" + }, + { + "name": "debug-debug-info", + "inherits": "base-debug-info", + "configurations": ["Debug"], + "packageDirectory": "dist-debug-debug-info" + }, + { "name": "generators", "inherits": "release", "configurePreset": "generators", |
