about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-10-09 08:26:09 +0000
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2023-10-09 08:26:09 +0000
commit88198c70e4f0eaf06231122a15d6c967ae0b6159 (patch)
tree8a664258f4bea632bdfc06bbe64feddec6d115a4
parentcc5db2c1c84169872f6278a3eb5f03c5abdef641 (diff)
parentfea943debfab3859853ef623e06248ffbfd603ab (diff)
Sync from rust bf9a1c8a193fc373897196321215794c8bebbeec
-rw-r--r--build_system/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/build_system/main.rs b/build_system/main.rs
index 798ae9dbd50..e8cf486e966 100644
--- a/build_system/main.rs
+++ b/build_system/main.rs
@@ -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");