From 06b868b7131f1f1371aa1758b55f29c60ff75338 Mon Sep 17 00:00:00 2001 From: Tristan Labelle Date: Wed, 8 Jan 2025 07:21:28 -0500 Subject: [PATCH] Generate PDBs with release builds --- Generator/CMakePresets.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Generator/CMakePresets.json b/Generator/CMakePresets.json index c07eba7..ece4705 100644 --- a/Generator/CMakePresets.json +++ b/Generator/CMakePresets.json @@ -24,8 +24,10 @@ "generator": "Ninja", "binaryDir": "${sourceDir}/build/release", "cacheVariables": { - "CMAKE_BUILD_TYPE": "Release", - "CMAKE_C_COMPILER": "clang-cl" + "CMAKE_BUILD_TYPE": "RelWithDebInfo", + "CMAKE_C_COMPILER": "clang", + "CMAKE_C_FLAGS_RELWITHDEBINFO": "-O2 -g -DNDEBUG", + "CMAKE_Swift_FLAGS_RELWITHDEBINFO": "-O -DNDEBUG -Xfrontend -g -Xfrontend -debug-info-format=codeview -use-ld=lld -Xlinker -debug" } } ],