C++ Logo

sg15

Advanced search

Re: "logical name" of importable headers

From: Iain Sandoe <iain_at_[hidden]>
Date: Mon, 6 Jun 2022 12:13:58 +0100
> On 6 Jun 2022, at 12:07, Boris Kolpackov via SG15 <sg15_at_[hidden]> wrote:
>
> Daniel Ruoso via SG15 <sg15_at_[hidden]> writes:
>
>> My main question is on how the build system communicates to the
>> compiler which importable headers exist:
>
> With the module mapper approach (at least as implemented in
> GCC/libcody), for each header include the compiler asks the
> build system whether to translate it to an import.

the same approach is in the pipeline for clang too - the implementation
there (including the names that represent a header unit) is intended to be
compatiible with GCC’s.

Iain.

> You can read on how the user communicates this information to
> build2 here:
>
> https://build2.org/blog/build2-cxx20-modules-gcc.xhtml#include-translation
> _______________________________________________
> SG15 mailing list
> SG15_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/sg15

Received on 2022-06-06 11:14:00