[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
Wed Aug 30 08:46:35 PDT 2017


boris created this revision.

Add the -fmodule-file-map=[<prefix>=]<file> option which can be used to specify a file that contains module name to precompiled modules files mapping, similar to -fmodule-file=<name>=<file>. The <prefix> can be used to only consider certain lines which can be useful if we want to store the mapping in an already existing file (for example, as comments in the .d makefile fragment generated with the -M option or some such).

-

Additional notes:

1. Based on this mailing list discussion: http://lists.llvm.org/pipermail/cfe-dev/2017-June/054431.html

2. Based on the functionality implemented in: https://reviews.llvm.org/D35020


https://reviews.llvm.org/D37299

Files:
  docs/Modules.rst
  include/clang/Basic/DiagnosticDriverKinds.td
  include/clang/Driver/Options.td
  lib/Driver/ToolChains/Clang.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/CXX/modules-ts/basic/basic.search/module-import.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37299.113270.patch
Type: text/x-patch
Size: 11613 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170830/7d5065ea/attachment-0001.bin>


More information about the cfe-commits mailing list