please icon indicating copy to clipboard operation
please copied to clipboard

get_outs(target) doesn't return all outputs.

Open cemeceme opened this issue 11 months ago • 1 comments

The get_outs(label) builtin doesn't seem to return all the actual outputs of the given label.

The outputs that are returned reliably seem to be those literally defined within the outs= section of rules. However, it seems that outputs that are defined as output_dirs= and those dynamically assigned with the add_out(target, name, out) builtin don't get picked up later.

There might be some additional problems that cause this, namely that rules don't always seem to wait for build labels passed in as sources to finish building before running pre-build functions. I haven't tested all cases, but at least for outputs assigned with add_out, adding those source labels to the deps= field seems to help.

cemeceme avatar Jan 23 '25 18:01 cemeceme

This issue has been automatically marked as stale because it has not had any recent activity in the past 90 days. It will be closed if no further activity occurs. If you require additional support, please reply to this message. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 00:04 stale[bot]