pd-rs / crank

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

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

Closed parasyte closed 1 year ago

parasyte commented 1 year 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