Skip to content

Commit

Permalink
Add debugging CMake preset & update code-workspace (AztecProtocol/bar…
Browse files Browse the repository at this point in the history
…retenberg#308)

* Add debugging CMake preset & update code-workspace

---------

Co-authored-by: Blaine Bublitz <[email protected]>
  • Loading branch information
codygunton and phated authored Apr 4, 2023
1 parent 5512fd0 commit cdfcf20
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions barretenberg/barretenberg.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
"cmake.configureArgs": [
"--preset clang15",
"-G Ninja",
"-g"
],
"cmake.useCMakePresets": "auto",
},
Expand Down
19 changes: 19 additions & 0 deletions barretenberg/cpp/CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@
"CXX": "clang++-15"
}
},
{
"name": "clang15-dbg",
"displayName": "Debugging build with Clang-15",
"description": "Build with globally installed Clang-15 in debug mode",
"inherits": "clang15",
"environment": {
"CMAKE_BUILD_TYPE": "Debug"
}
},
{
"name": "gcc",
"displayName": "Build with GCC",
Expand Down Expand Up @@ -130,6 +139,11 @@
"inherits": "default",
"configurePreset": "clang15"
},
{
"name": "clang15-dbg",
"inherits": "default",
"configurePreset": "clang15-dbg"
},
{
"name": "gcc",
"inherits": "default",
Expand Down Expand Up @@ -181,6 +195,11 @@
"inherits": "default",
"configurePreset": "clang15"
},
{
"name": "clang15-dbg",
"inherits": "default",
"configurePreset": "clang15-dbg"
},
{
"name": "gcc",
"inherits": "default",
Expand Down

0 comments on commit cdfcf20

Please sign in to comment.