-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: add the zig_shared_library rule to generate shared objects or dynamic libraries #103
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, that's already looking great! You're close.
One small comment (some test definitions are missing).
I'm not sure what command to run for the cross-platform tests. @aherrmann please advise.
These tests are included in the standard test suites. So, they'll run when you run bazel test //...
. To run these tests specifically you can use the command bazel test //zig/tests:target_platform_test
. (The tests use Bazel's transitions system under the hood to test different target platforms.)
5cc8a1e
to
14f0c84
Compare
Updated to fix the tests and address the comments:
|
14f0c84
to
6122710
Compare
Fixed tests failures related to defs import |
``` ./zig/private/common/zig_build.bzl:206: uninitialized: Variable "dynamic" may not have been initialized. (https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#uninitialized) ```
The 'lib' prefix was not taken into account.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contributing this feature!
I fixed a few more minor issues. I also noticed that there was a typo in the docs, these docs are automatically generated by running bazel run //docs:update
, or by bazel run //utils:update
which also updates other generated files.
Solves #102
This is what I have so far. I'm not sure what command to run for the cross-platform tests. @aherrmann please advise.