C++ Logo

sg15

Advanced search

Re: Proposal for module metadata format to be used by the std library and others

From: Mark de Wever <koraq_at_[hidden]>
Date: Thu, 14 Dec 2023 18:22:02 +0100
On Tue, Dec 12, 2023 at 04:56:32PM -0500, Daniel Ruoso via SG15 wrote:
> # Example
>
> Here's how I would expect that would look like for a standard library
> (assuming the modules file for now), such as libc++:
>
> {
> "version": 1,
> "revision": 1,
> "modules": [
> {
> "logical-name": "std",
> "source-path": "modules/std.cppm",
> "is-standard-library": true

I like this feature, that solves most of libc++'s hard-coded compiler
flags. The only one remaining is the local flag when exceptions are
disabled (see my other mail I just posted.)

> },
> {
> "logical-name": "std.compat",
> "source-path": "modules/std.compat.cppm"
> "is-std-library": true
> },
> {
> "logical-name": "std:someinterfacepartition",
> "source-path": "modules/std-someinterfacepartition.cppm"
> "is-std-library": true
> }
> ]
> }

I don't see a problem to generate and ship this file for libc++.

Mark

Received on 2023-12-14 17:22:05