pd-rs / crank

A wrapper for cargo to use creating games for the Playdate handheld gaming system.
MIT License
83 stars 16 forks source link

Fix linker error: undefined symbol `core::panicking::panic` #52

Closed parasyte closed 9 months ago

parasyte commented 9 months ago

Builds with -Z build-std-features=panic_immediate_abort to ensure the core::panicking plumbing is stripped.

See: https://github.com/rust-lang/rust/pull/55011

Adds -Cpanic=abort to RUSTFLAGS so that build profiles do not need to specify panic = "abort" in Cargo.toml. This can potentially allow simulator builds to customize panics. (Maybe printing to the console and stopping the event loop, for instance. But this work is TBD.)

Fixes https://github.com/pd-rs/crankstart/discussions/66