add custom release profile with debuginfo enabled

This is primarily useful for profiling. Also change the nix package to
decide whether to strip based on whether the "release" profile is used.
This commit is contained in:
Charles Hall 2024-10-25 19:54:41 -07:00
parent f0e41ade59
commit ec01a84efb
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
2 changed files with 5 additions and 1 deletions

View file

@ -166,3 +166,7 @@ jemalloc = ["dep:tikv-jemallocator"]
rocksdb = ["dep:rocksdb"]
sqlite = ["dep:rusqlite", "dep:parking_lot", "tokio/signal"]
systemd = ["dep:sd-notify"]
[profile.release-debug]
inherits = "release"
debug = true

View file

@ -78,7 +78,7 @@ let
];
};
dontStrip = profile == "dev";
dontStrip = profile != "release";
buildInputs = lib.optional (featureEnabled "jemalloc") rust-jemalloc-sys;