You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DEBUG environment variable set for a build script currently gets set to true if you have a profile with debug=0. AFAIK, rustc treats debug=0 the same as no debug, so I think it should be false.
Repro:
cargo new --lib a
cd a
cat >> Cargo.toml <<EOL
[profile.dev]
debug = 0
EOL
cat > build.rs <<EOL
fn main() { println!("DEBUG={}", std::env::var("DEBUG").unwrap()); }
EOL
cargo build -vv
I can fix this if you'd like.
The text was updated successfully, but these errors were encountered:
The
DEBUG
environment variable set for a build script currently gets set totrue
if you have a profile withdebug=0
. AFAIK, rustc treats debug=0 the same as no debug, so I think it should be false.Repro:
I can fix this if you'd like.
The text was updated successfully, but these errors were encountered: