summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-12-06 15:55:48 +0800
committerGitHub <noreply@github.com>2024-12-06 07:55:48 +0000
commit22b64a446c8c37cc0b3670eb117b64575fc54d2f (patch)
treec61fca70d0973ca0f8ebe7dd908344983e4aca02 /CMakeLists.txt
parent7dabfa76ccfb396e9d2019e2b6e01259d1661dc5 (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 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 475780764..436f8e69d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -185,6 +185,12 @@ enum_option(
"Build slang as a static library"
)
+option(
+ SLANG_ENABLE_SPLIT_DEBUG_INFO
+ "Generate split debug info for debug builds"
+ ON
+)
+
set(SLANG_GENERATORS_PATH
""
CACHE PATH