Skip to content

Standard Library Modules: Add modules/modules.json#3358

Merged
StephanTLavavej merged 1 commit into
microsoft:mainfrom
StephanTLavavej:modules-json
Jan 24, 2023
Merged

Standard Library Modules: Add modules/modules.json#3358
StephanTLavavej merged 1 commit into
microsoft:mainfrom
StephanTLavavej:modules-json

Conversation

@StephanTLavavej
Copy link
Copy Markdown
Member

This is a reverse mirror of MSVC-PR-445938. The goal is for the MSVC toolset to communicate to the IDE, MSBuild, and CMake where the Standard Library Modules are located, and the simple dependency relationship between them, so that import std; can automatically work with as little user effort as possible. (There will be more changes in the MSVC and VS repos to add properties and environment variables to communicate where this file is located.)

modules.json is JSON without comments, because multiple tools will need to read this file, and some might not support JSON-with-comments. (Accordingly, it lacks our usual banners.)

I've verified that modules.json is copied to the output directory (e.g. to D:\GitHub\STL\out\x64\out\modules\modules.json).

@StephanTLavavej StephanTLavavej added enhancement Something can be improved modules C++23 modules, C++20 header units labels Jan 24, 2023
@StephanTLavavej StephanTLavavej requested a review from a team as a code owner January 24, 2023 00:49
@StephanTLavavej StephanTLavavej merged commit 992efd9 into microsoft:main Jan 24, 2023
@StephanTLavavej StephanTLavavej deleted the modules-json branch January 24, 2023 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Something can be improved modules C++23 modules, C++20 header units

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants