Skip to content

Commit 1d8d0d3

Browse files
committed
Emerald: Always have RUST_BACKTRACE=full
since we don't have environment variables yet, this makes it easy to debug
1 parent 1f576ed commit 1d8d0d3

File tree

1 file changed

+4
-1
lines changed
  • library/std/src/sys/pal/emerald

1 file changed

+4
-1
lines changed

library/std/src/sys/pal/emerald/os.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ pub fn env() -> Env {
175175
panic!("not supported on this platform")
176176
}
177177

178-
pub fn getenv(_: &OsStr) -> Option<OsString> {
178+
pub fn getenv(str: &OsStr) -> Option<OsString> {
179+
if str == "RUST_BACKTRACE" {
180+
return Some("full".into());
181+
}
179182
None
180183
}
181184

0 commit comments

Comments
 (0)