Skip to content

Commit

Permalink
Auto merge of rust-lang#116487 - tamird:avoid-unwrap-absolute, r=bjorn3
Browse files Browse the repository at this point in the history
compiler: env/path handling fixes

Please see individual commits. r? `@bjorn3` cf. rust-lang#116426
  • Loading branch information
bors committed Oct 8, 2023
2 parents c9f6ac4 + 2753052 commit fea943d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_system/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ enum CodegenBackend {
}

fn main() {
if env::var("RUST_BACKTRACE").is_err() {
if env::var_os("RUST_BACKTRACE").is_none() {
env::set_var("RUST_BACKTRACE", "1");
}
env::set_var("CG_CLIF_DISABLE_INCR_CACHE", "1");
Expand Down

0 comments on commit fea943d

Please sign in to comment.