Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

StephanTLavavej
Copy link
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