Skip to content

Conversation

@parasyte
Copy link
Contributor

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

See: rust-lang/rust#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 pd-rs/crankstart#66

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

See: rust-lang/rust#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 pd-rs/crankstart#66
@boozook boozook merged commit f46cda4 into pd-rs:main Sep 15, 2023
@parasyte parasyte deleted the fix/undefined-reference-to-panic branch September 15, 2023 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants