HomePhabricator

[PCH+Modules] Load -fmodule-map-file content before including PCHs

Description

[PCH+Modules] Load -fmodule-map-file content before including PCHs

Consider:

  1. Generate PCH with -fmodules and -fmodule-map-file
  2. Use PCH with -fmodules and the same -fmodule-map-file

If we don't load -fmodule-map-file content before including PCHs,
the modules that are dependencies in PCHs cannot get loaded,
since there's no matching module map file when reading back the AST.

rdar://problem/40852867

Differential Revision: https://reviews.llvm.org/D48685

Details

Committed
brunoJul 19 2018, 5:32 AM
Differential Revision
D48685: [PCH+Modules] Load -fmodule-map-file content before including PCHs
Branches
Unknown
Tags
Unknown