about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2025-07-13 16:14:30 -0400
committerAntoni Boucher <bouanto@zoho.com>2025-07-13 16:14:30 -0400
commit56a82a2402e369ba999e88de125e27014f975f17 (patch)
tree309077ca4f49b1b318574ba5ccaedb1fdc116db5
parent1954034e3472d2c8c8229e029e92b81db5809f9c (diff)
downloadrust-56a82a2402e369ba999e88de125e27014f975f17.tar.gz
rust-56a82a2402e369ba999e88de125e27014f975f17.zip
Fix empty backtrace
-rw-r--r--build_system/src/build.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/build_system/src/build.rs b/build_system/src/build.rs
index 4033ffe0694..94b40319f4a 100644
--- a/build_system/src/build.rs
+++ b/build_system/src/build.rs
@@ -139,6 +139,9 @@ pub fn build_sysroot(env: &HashMap<String, String>, config: &ConfigInfo) -> Resu
         rustflags.push_str(&cg_rustflags);
     }
 
+    args.push(&"--features");
+    args.push(&"backtrace");
+
     let mut env = env.clone();
     env.insert("RUSTFLAGS".to_string(), rustflags);
     let sysroot_dir = library_dir.join("sysroot");