[PATCH] D37299: [Modules] Add ability to specify module name to module file mapping in a file

Boris Kolpackov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 17 04:17:48 PST 2017


boris added a comment.

Ping.

Also, to add to my previous comment, even if for a moment we ignore the header dependencies and when they are extracted, a modern build system normally tracks other kinds of what can be called "auxiliary dependency information": some form of compiler signature, hash of options that were used to compile the file, etc., so that when any of those change, the object file gets recompiled automatically. For example, in build2, we store all these signatures/hashes plus the header and module dependency information in a single .d file (which we call auxiliary dependency database). What I am trying to show by this is that it is well established that for C/C++ compilation there has to be an extra file for each .o where such information is stored. And it seems natural to want to reuse this file for supplying the "module map" to the compiler instead of creating yet another per-.o file.


https://reviews.llvm.org/D37299





More information about the cfe-commits mailing list