Replies: 1 comment 2 replies
-
Can you give a bit more context what are u trying to achieve? Indeed, C/C++ code generation rules don't provide DefaultInfo/OutputGroupInfo at the moment -- I didn't see a need for that. I could add a depset of headers e.g. in OutputGroupInfo. Then you could process that e.g. in your rule. BTW, I tend to avoid genrule as it works in the host config. I would try something like https://github.com/bazelbuild/bazel-skylib/blob/main/docs/run_binary_doc.md#run_binary or a custom rule. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to get the location where I can include headers in a genrule.
So I do "$(location @ros2_rcl_interfaces//:c_builtin_interfaces)", however this results in the following error:
label '@ros2_rcl_interfaces//:c_builtin_interfaces' in $(location) expression expands to no files
,@mvukov can you help?
Beta Was this translation helpful? Give feedback.
All reactions