Skip to content

Commit

Permalink
feat: Add RelWithAssert build (#4997)
Browse files Browse the repository at this point in the history
A build with `ASSERT`s for those of us who don't regularly build and run
in debug.
  • Loading branch information
codygunton committed Mar 15, 2024
1 parent dea3f87 commit 4f337c7
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions barretenberg/cpp/CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@
"LDFLAGS": "-O2 -gdwarf-4"
}
},
{
"name": "clang16-assert",
"displayName": "Build with Clang-16 using RelWithAssert",
"description": "Build with globally installed Clang-16 in release with ASSERTs mode",
"inherits": "default",
"environment": {
"CMAKE_BUILD_TYPE": "RelWithAssert"
}
},
{
"name": "asan",
"displayName": "Debugging build with address sanitizer on Clang-16",
Expand Down Expand Up @@ -114,7 +123,8 @@
"CC": "gcc-13",
"CXX": "g++-13"
}
}, {
},
{
"name": "bench",
"displayName": "Build benchmarks",
"description": "Build default preset but with a special benchmark directory",
Expand Down Expand Up @@ -359,6 +369,11 @@
"inherits": "default",
"configurePreset": "clang16-dbg-fast"
},
{
"name": "clang16-assert",
"inherits": "default",
"configurePreset": "clang16-assert"
},
{
"name": "asan",
"inherits": "default",
Expand Down Expand Up @@ -389,7 +404,7 @@
"inherits": "clang16",
"configurePreset": "fuzzing"
},
{
{
"name": "fuzzing-asan",
"inherits": "clang16-dbg",
"configurePreset": "fuzzing-asan"
Expand Down Expand Up @@ -442,14 +457,18 @@
"configurePreset": "wasm-dbg",
"inheritConfigureEnvironment": true,
"jobs": 0,
"targets": ["barretenberg.wasm"]
"targets": [
"barretenberg.wasm"
]
},
{
"name": "wasm-threads",
"configurePreset": "wasm-threads",
"inheritConfigureEnvironment": true,
"jobs": 0,
"targets": ["barretenberg.wasm"]
"targets": [
"barretenberg.wasm"
]
},
{
"name": "xray",
Expand Down Expand Up @@ -518,7 +537,7 @@
"inherits": "default",
"configurePreset": "fuzzing"
},
{
{
"name": "fuzzing-asan",
"inherits": "clang16-dbg",
"configurePreset": "fuzzing-asan"
Expand Down

0 comments on commit 4f337c7

Please sign in to comment.