Skip to content

Commit

Permalink
Legit debug CMakePresets for subprojects
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlabelle committed Dec 10, 2024
1 parent d5b93b2 commit ee0e2ac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Generator/CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_C_COMPILER": "clang-cl"
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_COMPILER": "clang",
"CMAKE_C_FLAGS_DEBUG": "-O0 -gdwarf -DNDEBUG",
"CMAKE_Swift_FLAGS_DEBUG": "-DDEBUG -Onone -Xfrontend -g -Xfrontend -debug-info-format=dwarf -use-ld=lld -Xlinker -debug:dwarf"
}
},
{
Expand Down
6 changes: 4 additions & 2 deletions InteropTests/CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
"generator": "Ninja",
"binaryDir": "${sourceDir}/build/debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_C_COMPILER": "clang-cl"
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_COMPILER": "clang",
"CMAKE_C_FLAGS_DEBUG": "-O0 -gdwarf -DNDEBUG",
"CMAKE_Swift_FLAGS_DEBUG": "-DDEBUG -Onone -Xfrontend -g -Xfrontend -debug-info-format=dwarf -use-ld=lld -Xlinker -debug:dwarf"
}
}
],
Expand Down

0 comments on commit ee0e2ac

Please sign in to comment.