egui icon indicating copy to clipboard operation
egui copied to clipboard

`-Csplit-debuginfo=unpacked` is unstable on this platform

Open paul-hansen opened this issue 2 years ago • 2 comments

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:

  1. git clone https://github.com/emilk/egui.git
  2. cd egui
  3. cargo build
  4. 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).

paul-hansen avatar Nov 30 '22 16:11 paul-hansen

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.

paul-hansen avatar Nov 30 '22 16:11 paul-hansen

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

paul-hansen avatar Nov 30 '22 16:11 paul-hansen

error: -Csplit-debuginfo=unpacked is unstable on this platform

How to disable?

lucasjinreal avatar Jan 15 '23 11:01 lucasjinreal

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.

paul-hansen avatar Jan 15 '23 23:01 paul-hansen