I think I still don't understand dependencies #2799
Unanswered
davidchisnall
asked this question in
Q&A
Replies: 1 comment 11 replies
-
I'm not sure what you are talking about, you could provide a reproducible demo project and then provide some error output. |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a target that does:
This target has a rule that implements
on_linkcmd
to define the link job. This batchcmd is sometimes (deterministically, 100% of the time, on first build after clean) run before some of the dependencies listed inadd_deps
are built, which then causes the linker to fail because some files don't exist.I am using
batchcmd:add_depfiles
in my rule to specify some additional files, but I'd assumed that the dependencies are also built. I've also tried explicitly usingadd_depfiles
on the set of files that are passed to the linker. The files being passed to the linker are collected with:I don't understand why a target can be built before its dependencies are built.
Beta Was this translation helpful? Give feedback.
All reactions