Skip to content

Commit

Permalink
Make panic-unwind a default feature for libstd
Browse files Browse the repository at this point in the history
x.py sets it unconditionally, so want it for plain "cargo build".

We need to load one of the panic runtimes that is in src (vs. pre-built in the
compiler's sysroot) to ensure that we don't load libpanic_unwind from the
sysroot. That would lead to a load of libcore, also from the sysroot, and create
lots of errors about duplicate lang items.
  • Loading branch information
luca-barbieri authored and Mark-Simulacrum committed Apr 11, 2020
1 parent 3dd500d commit 1864caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ hermit-abi = { version = "0.1.10", features = ['rustc-dep-of-std'] }
wasi = { version = "0.9.0", features = ['rustc-dep-of-std'], default-features = false }

[features]
default = ["std_detect_file_io", "std_detect_dlsym_getauxval"]
default = ["std_detect_file_io", "std_detect_dlsym_getauxval", "panic-unwind"]

backtrace = [
"backtrace_rs/dbghelp", # backtrace/symbolize on MSVC
Expand Down

0 comments on commit 1864caa

Please sign in to comment.