Repository navigation
Add Windows GNU unwind compatibility shim - #1636
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| /// Forwards `rsbegin`'s registration hook to libunwind. | ||
| #[no_mangle] | ||
| pub unsafe extern "C" fn ___register_frame_info( | ||
| eh_frame: *const u8, | ||
| object: *mut c_void, | ||
| ) { | ||
| __register_frame_info(eh_frame, object); | ||
| } | ||
|
|
||
| /// Forwards `rsbegin`'s deregistration hook to libunwind. | ||
| #[no_mangle] | ||
| pub unsafe extern "C" fn ___deregister_frame_info(eh_frame: *const u8) { | ||
| __deregister_frame_info(eh_frame); |
There was a problem hiding this comment.
Guard against duplicate legacy unwind symbols
The shim unconditionally defines ___register_frame_info and ___deregister_frame_info for every windows-gnu build. Existing MinGW toolchains already export these legacy libgcc symbols, so compiling the workspace on those toolchains will now fail with multiple-definition link errors even though the build previously succeeded. The crate needs to either use weak linkage or gate these definitions on toolchains that actually miss the symbols; otherwise normal Windows‑GNU builds are broken.
Useful? React with 👍 / 👎.
Audit weighing the cost of keeping the Windows GNU triple in the matrix against MSVC-only support, in light of the IOCP fast path landing for the disk-commit thread (#1868). Recommends dropping GNU: CI runs only cargo check, no release artifact ships GNU, and parity work is large relative to observed downstream demand.
Audit weighing the cost of keeping the Windows GNU triple in the matrix against MSVC-only support, in light of the IOCP fast path landing for the disk-commit thread (#1868). Recommends dropping GNU: CI runs only cargo check, no release artifact ships GNU, and parity work is large relative to observed downstream demand.
) Concise companion to the long-form `windows-gnu-vs-msvc-evaluation.md`: maps the GNU shim crate, libgcc/libwinpthread bundling, and MinGW panic-unwind shim against the MSVC-only artefact + CI surface, and records the recommendation to deprecate `x86_64-pc-windows-gnu` for one minor release before removal.
Audit weighing the cost of keeping the Windows GNU triple in the matrix against MSVC-only support, in light of the IOCP fast path landing for the disk-commit thread (#1868). Recommends dropping GNU: CI runs only cargo check, no release artifact ships GNU, and parity work is large relative to observed downstream demand.
) Concise companion to the long-form `windows-gnu-vs-msvc-evaluation.md`: maps the GNU shim crate, libgcc/libwinpthread bundling, and MinGW panic-unwind shim against the MSVC-only artefact + CI surface, and records the recommendation to deprecate `x86_64-pc-windows-gnu` for one minor release before removal.
Audit weighing the cost of keeping the Windows GNU triple in the matrix against MSVC-only support, in light of the IOCP fast path landing for the disk-commit thread (#1868). Recommends dropping GNU: CI runs only cargo check, no release artifact ships GNU, and parity work is large relative to observed downstream demand.
) Concise companion to the long-form `windows-gnu-vs-msvc-evaluation.md`: maps the GNU shim crate, libgcc/libwinpthread bundling, and MinGW panic-unwind shim against the MSVC-only artefact + CI surface, and records the recommendation to deprecate `x86_64-pc-windows-gnu` for one minor release before removal.
Summary
rsync-windows-gnu-ehcompatibility crate that forwards the legacy libgcc unwind hooks to libunwind on windows-gnuTesting