egui
egui copied to clipboard
`-Csplit-debuginfo=unpacked` is unstable on this platform
Describe the bug
When compiling the master branch on Windows I get this error:
error: `-Csplit-debuginfo=unpacked` is unstable on this platform
Related issue: https://github.com/rust-lang/rust/issues/103976 You can work around this by commenting out this line: https://github.com/emilk/egui/blob/master/Cargo.toml#L29
To Reproduce Steps to reproduce the behavior:
-
git clone https://github.com/emilk/egui.git
-
cd egui
-
cargo build
- build fails with above error.
Expected behavior
It compiles
Desktop (please complete the following information):
- OS: Windows
- Version: 11 22H2 22621.819
Additional context I'm mainly opening this so other people can find it as it took me a bit to track down the cause. I'll leave it up to you if you want to remove that line from the project or wait to see if they fix it (see related issue above).
If you want to remove this from the project's cargo.toml, you can still add it locally as a mac user by adding it to your .cargo/config.toml
(note this is config.toml not cargo.toml). you can add that to the project's .gitignore so it can be specified specifically for this project, or it can be added to in a parent directory.
Looks like there are a couple related PRs that should fix this in the future though so no worries if you don't want to spend time on it. Again, mainly just opening this for discovery by other people running into it. https://github.com/rust-lang/rust/pull/104104 https://github.com/rust-lang/cargo/pull/11347
error: -Csplit-debuginfo=unpacked
is unstable on this platform
How to disable?
egui has it enabled in their project's cargo.toml file. You would need to remove this line from egui's cargo.toml file: https://github.com/emilk/egui/blob/60b4f5e3fe00fe3f840374846dfd241817e6bf1e/Cargo.toml#L30
I updated my original message to point to the correct line.