fix backtraces produced by standard library under Wine #22492
+13
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
from #22484, since apparently I can't reopen the old pr?
Alright, I've decided to give another go. I think I understood the problem better this time, otherwise the CI will inform me of my hubris.
main.zig
:Compile using
zig build-exe -target x86_64-windows-msvc ./main.zig
and run usingwine ./main.exe
Output before these changes:
Output after these changes:
It seems like it's failing to find the location of
main.zig
, but that's a mystery for another time.wine-9.22
#17535 is a related issue. Compiling Zig with these changes to the standard library fixes the original error message, but replaced it with another error (as well as a now-working backtrace 😁) that comes from an unimplemented feature in wine:
Running the test suite under wine also had a couple tests fail, presumably from similar issues. Hard to say without running it on Microsoft Windows.