Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 15, 2023

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
7 checks passed
@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