[PATCH] D45012: [Modules] Skip adding unused module maps to the dependency file

Bruno Cardoso Lopes via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 28 19:35:02 PDT 2018


bruno created this revision.
bruno added a reviewer: rsmith.

Current generation of dependency files when modules is on take into
account all parsed module maps found while searching for a specific
module.

Add a new cc1 flag that allows changing that behavior: only add module
maps that actually answer for the modules being searched for.


Repository:
  rC Clang

https://reviews.llvm.org/D45012

Files:
  include/clang/Driver/CC1Options.td
  include/clang/Frontend/DependencyOutputOptions.h
  include/clang/Lex/ModuleMap.h
  lib/Frontend/CompilerInvocation.cpp
  lib/Frontend/DependencyFile.cpp
  lib/Lex/ModuleMap.cpp
  test/Modules/Inputs/dependency-skip-unused/module.modulemap
  test/Modules/Inputs/dependency-skip-unused/x/module.modulemap
  test/Modules/Inputs/dependency-skip-unused/y/module.modulemap
  test/Modules/dependency-skip-unused-modulemaps.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45012.140179.patch
Type: text/x-patch
Size: 6979 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180329/6524eca5/attachment.bin>


More information about the cfe-commits mailing list