[build2] Trigger compile of sources when their header dependencies change

Boris Kolpackov boris at codesynthesis.com
Mon Apr 17 16:09:04 UTC 2017


Hi Max,

Moldmann Max (DC-MA/ENG52-NA) <Max.Moldmann at boschrexroth-us.com> writes:

> Unfortunately the way many projects are using the include directive
> they depend on the -MMD option to compile correctly.

How so? -MMD has nothing to do with compilation, it only controls what
ends up being written into the .d output. And since build2 takes care
of that, you shouldn't pass any -M* options yourself.


> The pathnames in the resulting .o.d file are absolute using Windows
> style backslashes. By the way can build2 work with relative path
> names here - this e.g. makes compare jobs easier?

No, relative paths are used to detect non-existent headers to support
auto-generated source code.

Boris



More information about the users mailing list