Date: Thu, 13 Oct 2022 15:34:10 -0400
On Thu, Oct 13, 2022 at 19:02:19 +0000, Gabriel Dos Reis wrote:
> > While fine, that is discovered far too late for CMake to do much of
> > anything about (as the build graph is already made at this point and is
> > static in Ninja generators; Makefiles is more flexible, but needs
> > serious synchronization to avoid duplicate rule generation).
>
> What do you mean by "too late"? If a source file (.h or .cpp) says
> "import <some-header>;", that shows up in the output of the dependency
> scanner, doesn’t it?
Yes, but we can't then add a rule to `build.ninja` to say "hey, make a
BMI of this header file no one knew about until we started building
stuff".
--Ben
> > While fine, that is discovered far too late for CMake to do much of
> > anything about (as the build graph is already made at this point and is
> > static in Ninja generators; Makefiles is more flexible, but needs
> > serious synchronization to avoid duplicate rule generation).
>
> What do you mean by "too late"? If a source file (.h or .cpp) says
> "import <some-header>;", that shows up in the output of the dependency
> scanner, doesn’t it?
Yes, but we can't then add a rule to `build.ninja` to say "hey, make a
BMI of this header file no one knew about until we started building
stuff".
--Ben
Received on 2022-10-13 19:34:12