Skip to content

Commit

Permalink
Temporarily disable panic = "abort" in hello-world-small.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Oct 20, 2024
1 parent b8a8155 commit 055e3ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ Hello, world!

## Compatibility with `-Zbuild-std`

At this time, a combination of Eyra, `-Zbuild-std`, and `panic = "abort"` does
not work. See [nbdd0121/unwinding#39] for details. FIXME.

[nbdd0121/unwinding#39]: https://github.com/nbdd0121/unwinding/issues/39

Eyra works with `-Zbuild-std`, however the `--rename=std` trick used above
doesn't work, so it's necessary to instead use this `cargo add` invocation:

Expand Down
4 changes: 3 additions & 1 deletion example-crates/hello-world-small/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ strip = true # Automatically strip symbols from the binary.
opt-level = "z" # Optimize for size.
lto = true
codegen-units = 1
panic = "abort"
# FIXME: `panic = "abort"` does not currently work with `-Zbuild-std` due
# to <https://github.com/nbdd0121/unwinding/issues/39>.
#panic = "abort"

# This is just an example crate, and not part of the eyra workspace.
[workspace]

0 comments on commit 055e3ef

Please sign in to comment.