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

Update build.zig for upstream API changes #632

Closed
wants to merge 1 commit into from

Conversation

@ivmai
Copy link
Owner

ivmai commented Apr 16, 2024

/cc @plajjan

build.zig Show resolved Hide resolved
ivmai pushed a commit that referenced this pull request Apr 17, 2024
PR #632 (bdwgc).

Zig API has changed recently, the changes in the script are needed
otherwise an error is reported in the code using Build.LazyPath().

* build.zig (Path): Remove.
* build.zig (zig_min_required_version): Update to "0.12.0-dev.3610".
* build.zig (build): Use b.path() instead of Path.relative() and .path
assignment.
* build.zig (installHeader): Remove inc_path const; use b.pathJoin()
and b.path() instead of b.allocator.alloc() and fmt.bufPrint().
@ivmai
Copy link
Owner

ivmai commented Apr 17, 2024

Merged. Thank you!

@ivmai ivmai closed this Apr 17, 2024
@plajjan
Copy link
Contributor

plajjan commented Apr 17, 2024

Cool!

@linusg are you using bdwgc with zig?

@linusg
Copy link
Contributor Author

linusg commented Apr 17, 2024

Thanks! @plajjan yes, I use it heavily in my js engine :)

@linusg linusg deleted the zig-build branch April 17, 2024 09:08
@ivmai
Copy link
Owner

ivmai commented Apr 17, 2024

Thanks! @plajjan yes, I use it heavily in my js engine :)

Cool! Before it I knew only 1 JS engine using bdwgc (but written in C++) - Escargot

@plajjan
Copy link
Contributor

plajjan commented Apr 17, 2024

Ahh nice! I'm pleased to hear the build.zig is useful to others (I did some of the initial work there) and it's great that we're a group of people that can help maintain this :)

@linusg
Copy link
Contributor Author

linusg commented Apr 17, 2024

I used to maintain my own barebones build.zig integration (https://codeberg.org/linusg/zig-build-libgc) but it's much nicer to have it upstream and with all build options supported - thanks for doing this work!

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.

3 participants