Skip to content

Commit

Permalink
Document the LLVM bug workaround.
Browse files Browse the repository at this point in the history
It's currently necessary for users to add this workaround to Cargo.toml:

```toml
[profile.dev.package.unwinding]
debug = false
```
  • Loading branch information
sunfishcode committed Aug 22, 2024
1 parent 348203f commit 3e30b89
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ fn main() {
}
```

And, to work around an LLVM bug, add the following to Cargo.toml:
```toml
# TODO: Remove this workaround when
# https://github.com/llvm/llvm-project/pull/105513
# makes it into the Rust compiler.
[profile.dev.package.unwinding]
debug = false
```

With that, `cargo build`, `cargo run`, `cargo test` (with Nightly) and so on
will work normally with any `*-unknown-linux-gnu*` target.

Expand Down

0 comments on commit 3e30b89

Please sign in to comment.