Skip to content
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

get_outs(target) doesn't return all outputs. #3339

Open
cemeceme opened this issue Jan 23, 2025 · 0 comments
Open

get_outs(target) doesn't return all outputs. #3339

cemeceme opened this issue Jan 23, 2025 · 0 comments

Comments

@cemeceme
Copy link
Contributor

cemeceme commented Jan 23, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant