-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Compilation error on stage2 with @cImport
and SDL2
#12737
Labels
bug
Observed behavior contradicts documented or intended behavior
translate-c
C to Zig source translation feature (@cImport)
Milestone
Comments
sagehane
added
the
bug
Observed behavior contradicts documented or intended behavior
label
Sep 4, 2022
See #12733 |
that's different. the issue here is
|
I'm hitting the same problem. This is a regression introduced by #12723
|
a workaround might be manually comment |
fabioarnold
added a commit
to fabioarnold/MiniPixel
that referenced
this issue
Sep 7, 2022
Until ziglang/zig#12737 is resolved
We also hit this in
|
7 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Observed behavior contradicts documented or intended behavior
translate-c
C to Zig source translation feature (@cImport)
Zig Version
0.10.0-dev.3871+b7d5582de
Steps to Reproduce
Build/run a file using SDL2 without
-fstage1
.Sample
test.zig
file with SDL2:Notes
Reproduced on NixOS and Guix.
The Guix user who helped me test this bug couldn't reproduce it on
0.10.0-dev.3838+77f31ebbb
, which suggests its a regression.I also couldn't reproduce this bug with Raylib, meaning the extent of this breakage isn't to all imported C libraries.
Expected Behavior
It should behave the same as with stage1:
Actual Behavior
The text was updated successfully, but these errors were encountered: