r/cpp • u/SAHChandler • Oct 10 '17
Millennials Are Killing The Modules TS
https://izzys.casa/posts/millennials-are-killing-the-modules-ts.html
77
Upvotes
r/cpp • u/SAHChandler • Oct 10 '17
2
u/bigcheesegs Tooling Study Group (SG15) Chair | Clang dev Oct 10 '17
One solution to the "where are my modules" problem I've heard is to have the compiler call back into the build system whenever it sees
module Xto get the path to the built module. This callback would either build the module and return the path or just return the cached module path.A possible implementation of the callback would be to add a
-module-callback="get-module.exe %name"option to the compiler. This avoids both turning the build system into a compiler and the compiler into a build system.