-
Notifications
You must be signed in to change notification settings - Fork 406
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
Conversation
/cc @plajjan |
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().
Merged. Thank you! |
Cool! @linusg are you using bdwgc with zig? |
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 |
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 :) |
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! |
See:
Compile.installHeader
behavior, addWriteFile.addCopyDirectory
ziglang/zig#19167