Skip to content

Commit

Permalink
feat(storage, libmdbx): same code style in build.rs (#6867)
Browse files Browse the repository at this point in the history
Signed-off-by: jsvisa <[email protected]>
  • Loading branch information
jsvisa authored Feb 29, 2024
1 parent 7d6fb37 commit 025fa5f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/storage/libmdbx-rs/mdbx-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,13 @@ fn main() {
// Enable debugging on debug builds
#[cfg(debug_assertions)]
{
cc_builder.define("MDBX_DEBUG", "1");
cc_builder.define("MDBX_ENABLE_PROFGC", "1");
cc_builder.define("MDBX_DEBUG", "1").define("MDBX_ENABLE_PROFGC", "1");
}

// Disables debug logging on optimized builds
#[cfg(not(debug_assertions))]
{
cc_builder.define("NDEBUG", None).define("MDBX_DEBUG", "0");
cc_builder.define("MDBX_DEBUG", "0").define("NDEBUG", None);
}

cc_builder.file(mdbx.join("mdbx.c")).compile("libmdbx.a");
Expand Down

0 comments on commit 025fa5f

Please sign in to comment.