C++ Logo

sg15

Advanced search

Re: [isocpp-ext] Can we expect that all C++ source files can have the same suffix?

From: Gabriel Dos Reis <gdr_at_[hidden]>
Date: Tue, 19 Apr 2022 11:10:05 +0000
[Ben]
> That's the point of having the compiler be the one to extract this
> information as part of the build. MSVC has `-scanDependencies` and GCC
> will have something similar (currently `-fdep-file=` in my patch).

And the format of the output was approved by SG15 a while back.

-- Gaby

-----Original Message-----
From: Ext <ext-bounces_at_[hidden]> On Behalf Of Ben Boeckel via Ext
Sent: Tuesday, April 19, 2022 3:47 AM
To: Jayesh Badwaik via Ext <ext_at_[hidden]>
Cc: Ben Boeckel <ben.boeckel_at_[hidden]>
Subject: Re: [isocpp-ext] [SG15] Can we expect that all C++ source files can have the same suffix?

On Tue, Apr 19, 2022 at 09:42:51 +0200, Jayesh Badwaik via Ext wrote:
> In the current setup, Is it possible for build system to create a
> dependency graph for modules without having to parse the files?

With an active build tool (like build2), sure. But if you want to use
just the build graph executors (e.g., make, ninja), scanning is
necessary AFAIK.

> If build system has to parse the files, then sooner or later, the build
> system has to become a compiler.

That's the point of having the compiler be the one to extract this
information as part of the build. MSVC has `-scanDependencies` and GCC
will have something similar (currently `-fdep-file=` in my patch).

--Ben
_______________________________________________
Ext mailing list
Ext_at_[hidden]
Subscription: https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.isocpp.org%2Fmailman%2Flistinfo.cgi%2Fext&amp;data=05%7C01%7Cgdr%40microsoft.com%7C4b481fdef55f4f1a808b08da21f1ff4c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637859620502651820%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=TrwEUxh26VZFMwBaMGOXNX1DlJ30RimOnnwrtdVJRqg%3D&amp;reserved=0
Link to this post: https://nam06.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.isocpp.org%2Fext%2F2022%2F04%2F19064.php&amp;data=05%7C01%7Cgdr%40microsoft.com%7C4b481fdef55f4f1a808b08da21f1ff4c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637859620502651820%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=wQHQTAjDqn0tr0JkflnLXAFefj4TUYbvql8xpN013mM%3D&amp;reserved=0

Received on 2022-04-19 11:10:08