C++ Logo

sg15

Advanced search

Re: [Tooling] Dependency information for module-aware build tools

From: Ben Boeckel <ben.boeckel_at_[hidden]>
Date: Mon, 4 Mar 2019 19:21:15 -0500
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

Received on 2019-03-05 01:21:18