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

Support building C++ code generator with panic=abort #184

Merged
merged 1 commit into from
May 1, 2020
Merged

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented May 1, 2020

Closes #130. This pulls in dtolnay/proc-macro2#220.

Tested by adding this:

[profile.dev]
panic = "abort"

to the bottom of Cargo.toml and running cargo run --manifest-path /git/cxx/gen/cmd/Cargo.toml -- /git/cxx/tests/ffi/lib.rs, which aborts before this PR and succeeds after this PR.

@dtolnay dtolnay merged commit 7bdd9b5 into master May 1, 2020
@dtolnay dtolnay deleted the fallback branch May 1, 2020 23:16
martinboehme added a commit to martinboehme/autocxx that referenced this pull request Mar 19, 2021
Cargo always runs build scripts with panic=unwind, but other build
environments might not -- see here for a similar issue in cxx:

dtolnay/cxx#130

And the corresponding fix:

dtolnay/cxx#184
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.

cxxbridge doesn't run with panic=abort
1 participant