r/cpp • u/cpppm MSVC Game Dev PM • Sep 14 '20
Standard C++20 Modules support with MSVC in Visual Studio 2019 version 16.8 | C++ Team Blog
https://devblogs.microsoft.com/cppblog/standard-c20-modules-support-with-msvc-in-visual-studio-2019-version-16-8/
254
Upvotes
3
u/mjklaim Sep 14 '20
Hmm maybe I'm thinking with source-only dependencies, in which case the modules are being built by the buildsystem which only scan sources pointed as pre-requisite for targets, so there is no need for modules output directories.
In the case where the dependency is only binaries + headers or module interfaces (or BMI?) I guess you are correct that it becomes necessary.
I kind of avoid this issue by using only dependencies that are provided as sources, but in some ways, what you say is already what happened when Visual Studio started shipping pre-compiled modules of the standard library (the
std.corestuffs) in which case the buildsystem had to know where to find the BMIs.I stand corrected :)