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

Stop using removed std.Target functions in build.zig #706

Closed
wants to merge 1 commit into from

Conversation

linusg
Copy link
Contributor

@linusg linusg commented Feb 19, 2025

See: ziglang/zig@481b7bf

This change is backwards compatible because the old functions are equivalent to the new code.

@linusg linusg changed the title Stop using removed std.Target.isWasm() in build.zig Stop using removed std.Target functions in build.zig Feb 19, 2025
@ivmai
Copy link
Owner

ivmai commented Feb 19, 2025

This change is backwards compatible because the old functions are equivalent to the new code.

It works with zig 0.12.0, right?

@linusg
Copy link
Contributor Author

linusg commented Feb 19, 2025

It should, yes. That's ancient though, I wouldn't recommend using anything older than 0.13 - 0.14 is on the horizon.

@ivmai
Copy link
Owner

ivmai commented Feb 20, 2025

Looks good. I have processed it. But has not pushed to github yet.

ivmai pushed a commit that referenced this pull request Feb 22, 2025
PR #706 (bdwgc).

* build.zig (build): Replace `t.isWasm()` to `t.cpu.arch.isWasm()`;
replace `t.isDarwin()` to `t.os.tag.isDarwin()`.
@ivmai
Copy link
Owner

ivmai commented Feb 22, 2025

Merged. Thank you!

@ivmai ivmai closed this Feb 22, 2025
@linusg linusg deleted the zig-target branch February 22, 2025 10:14
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.

2 participants