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

Build i686-pc-windows-gnu failed #61

Closed
EddieIvan01 opened this issue Sep 14, 2022 · 1 comment · Fixed by #62
Closed

Build i686-pc-windows-gnu failed #61

EddieIvan01 opened this issue Sep 14, 2022 · 1 comment · Fixed by #62

Comments

@EddieIvan01
Copy link

When using cargo build i686-pc-windows-gnu, the architecture for zig should be i386-windows-gnu instead of i686-windows-gnu

> cargo zigbuild --target i686-pc-windows-gnu
...
error: UnknownArchitecture

> cat /Users/x/Library/Caches/cargo-zigbuild/0.12.2/zigcc-i686-pc-windows-gnu.sh
#!/usr/bin/env sh
/Users/x/.cargo/bin/cargo-zigbuild zig cc -- -target i686-windows-gnu -g $@
@messense
Copy link
Member

messense commented Sep 14, 2022

Looks like even with i386-windows-gnu zig still fails to build: https://github.com/messense/cargo-zigbuild/actions/runs/3050875072/jobs/4918466906

ziglang/zig#537

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 a pull request may close this issue.

2 participants