From 0830c85bc653d9e189e8035ec58ca555d71ed327 Mon Sep 17 00:00:00 2001 From: Chinedu Francis Nwafili Date: Thu, 14 Jan 2021 14:23:40 -0500 Subject: [PATCH] Recommend CARGO_PROFILE_RELEASE_DEBUG RUSTFLAGS does not always work https://github.com/rust-lang/rust/issues/71848#issuecomment-623159587 --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index c6f1b29..0cb5c5f 100644 --- a/README.md +++ b/README.md @@ -104,9 +104,7 @@ To counter this to some extent, you may either set the following in your debug = true ``` -Or use the [RUSTFLAGS](https://doc.rust-lang.org/cargo/reference/config.html#buildrustflags) environment variable. - -i.e. `RUSTFLAGS='-g'` +Or set the environment variable [CARGO_PROFILE_RELEASE_DEBUG=true](https://doc.rust-lang.org/cargo/reference/config.html#profilenamedebug). ## Use custom paths for perf and dtrace