[Tooling] Dependency information for module-aware build tools

Ben Boeckel ben.boeckel at kitware.com
Tue Mar 5 01:21:15 CET 2019


On Tue, Mar 05, 2019 at 00:11:39 +0000, Olga Arkhipova wrote:
> Why did you choose to have
>     "logical-provides": {           // Mapping of module names provided
>     "I": "I.gcm"                    // to provided BMI files.
> 
> instead of just module name which this source exports? 

Because on the `requires` side, you don't know the name of the file
which will be providing the module. Well, at least GCC doesn't assume…
If MSVC is going to assume, the requires/logical-provides mapping could
be short-circuited and `requires` just list BMI filenames (assuming they
match the filename output in the relevant `provides` side).

--Ben


More information about the Tooling mailing list