C++ Logo

sg15

Advanced search

Re: Provide build systems with ways to build the std(.compat) modules

From: Mark de Wever <koraq_at_[hidden]>
Date: Sun, 9 Jul 2023 14:22:50 +0200
On Fri, Jul 07, 2023 at 06:04:38PM +0000, Gabriel Dos Reis wrote:
> [Mark]
> > The proposed path seems not a good path for Windows. I hope the
> > Microsoft developers have a suggestion. Would it be possible for other
> > libraries to match with MSVC STL does?
>
> For context, MSVC puts the Standard Library Modules in a directory
> named "modules/" sibling to the "include/" directory for standard
> headers. That is the contract with MSVC users and all devtools
> targeting MSVC.

This was one of the proposals in the LLVM discourse too. There were some
concerns with the land grab of /usr/modules on Linux. I don't know
whether the Filesystem Hierarchy Standard group will object against this
idea. I see less issues with this approach on Windows systems.

> See for example, what I did here: https://github.com/GabrielDosReis/cmake-for-modules/blob/main/CXXModuleExperimentalSupport.cmake

Thanks.

Cheers,
Mark

Received on 2023-07-09 12:22:53