From 27b7ac0e8ae02a41f748cccd76d617bb3b9d9734 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Fri, 6 Dec 2024 20:24:43 +0800 Subject: Emit debug info for Release builds (#5783) * Remove unnecessary warnings on windows * Correctly set debug flags on gcc * Emit debug info for Release builds * Perform LTO for relwithdebinfo builds * Release from release builds not relwithdebinfo --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 436f8e69d..b6f68b427 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -185,6 +185,12 @@ enum_option( "Build slang as a static library" ) +option( + SLANG_ENABLE_RELEASE_DEBUG_INFO + "Generate debug info for Release builds" + ON +) + option( SLANG_ENABLE_SPLIT_DEBUG_INFO "Generate split debug info for debug builds" -- cgit v1.2.3