generated from bazel-contrib/rules-template
-
Notifications
You must be signed in to change notification settings - Fork 3
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
zig_binary|library|test
should support a Zig binary with library dependencies (.a
, .so
)
#15
Open
2 of 7 tasks
Tracked by
#1
Comments
4 tasks
aherrmann
changed the title
Dec 6, 2023
zig_binary
should support a Zig binary with library dependencies (.a
, .so
)zig_binary|library|test
should support a Zig binary with library dependencies (.a
, .so
)
I'm also looking to do what #146 wants. I want to link a cc_library to a zig_binary (or library or test). Also, ideally I would be able to include headers from those |
iphydf
added a commit
to iphydf/toktok-stack
that referenced
this issue
Dec 24, 2023
Zig doesn't work very well, yet. You can't depend on C code and can't include C stdlib headers. aherrmann/rules_zig#15 aherrmann/rules_zig#161
iphydf
added a commit
to iphydf/toktok-stack
that referenced
this issue
Dec 24, 2023
Zig doesn't work very well, yet. You can't depend on C code and can't include C stdlib headers. aherrmann/rules_zig#15 aherrmann/rules_zig#161
iphydf
added a commit
to iphydf/toktok-stack
that referenced
this issue
Dec 24, 2023
Zig doesn't work very well, yet. You can't depend on C code and can't include C stdlib headers. aherrmann/rules_zig#15 aherrmann/rules_zig#161
iphydf
added a commit
to iphydf/toktok-stack
that referenced
this issue
Dec 24, 2023
Zig doesn't work very well, yet. You can't depend on C code and can't include C stdlib headers. aherrmann/rules_zig#15 aherrmann/rules_zig#161
iphydf
added a commit
to iphydf/toktok-stack
that referenced
this issue
Dec 24, 2023
Zig doesn't work very well, yet. You can't depend on C code and can't include C stdlib headers. aherrmann/rules_zig#15 aherrmann/rules_zig#161
iphydf
added a commit
to iphydf/toktok-stack
that referenced
this issue
Dec 24, 2023
Zig doesn't work very well, yet. You can't depend on C code and can't include C stdlib headers. aherrmann/rules_zig#15 aherrmann/rules_zig#161
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Zig has two different ways to link against pre-built objects or libraries. Either, by passing the corresponding files on the command-line, in which case they are passed as file paths to the underlying linker, or by passing
-l
type flags, in which case they are looked up in the library search paths and either resolved to files or forwarded as-l
type flags to the underlying linker.cc_library
. #162cc_library
. #164cc_shared_library
. #178cc_library
. #179cc_library
. #180cc_library
deps. #181alwayslink
cc_library
. #182The text was updated successfully, but these errors were encountered: