[PATCH] D70219: Make `-fmodule-file=<name>=<path>` apply to .pcm file compilations

Andrew Gallagher via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 13 21:12:11 PST 2019


andrewjcg created this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

When precompiling a header module, `-fmodule-file=name>=<path>` flags
can be used to provide an updated path to a module, which allows modules
to be moved from the location they were compiled against.

This diff makes these flags also apply to when compiling a `.pcm` file
into a `.o`.


Repository:
  rC Clang

https://reviews.llvm.org/D70219

Files:
  include/clang/Frontend/ASTUnit.h
  lib/Frontend/ASTUnit.cpp
  lib/Frontend/FrontendAction.cpp
  test/Modules/Inputs/explicit-build-pcm/a.h
  test/Modules/Inputs/explicit-build-pcm/b.h
  test/Modules/Inputs/explicit-build-pcm/c.h
  test/Modules/Inputs/explicit-build-pcm/d.h
  test/Modules/Inputs/explicit-build-pcm/module.modulemap
  test/Modules/explicit-build-pcm.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70219.229226.patch
Type: text/x-patch
Size: 6103 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191114/d10cc804/attachment-0001.bin>


More information about the cfe-commits mailing list