From 055e3ef2bc3305fe5e42f43ab987d38e42ffa08c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sun, 20 Oct 2024 09:57:49 -0700 Subject: [PATCH] Temporarily disable `panic = "abort"` in hello-world-small. --- README.md | 5 +++++ example-crates/hello-world-small/Cargo.toml | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f4a5965..c7ac4c6 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/example-crates/hello-world-small/Cargo.toml b/example-crates/hello-world-small/Cargo.toml index e5ae4fe..3dbe237 100644 --- a/example-crates/hello-world-small/Cargo.toml +++ b/example-crates/hello-world-small/Cargo.toml @@ -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 . +#panic = "abort" # This is just an example crate, and not part of the eyra workspace. [workspace]