<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - -fmodule-map-file processed after loading PCH"
href="https://bugs.llvm.org/show_bug.cgi?id=36245">36245</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-fmodule-map-file processed after loading PCH
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Modules
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jordan_rose@apple.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=19813" name="attach_19813" title="Minimized reproducer">attachment 19813</a> <a href="attachment.cgi?id=19813&action=edit" title="Minimized reproducer">[details]</a></span>
Minimized reproducer
(see attached reproducer)
% cc -x objective-c-header -fmodules
-fmodule-map-file=somelib/somelib.modulemap test.h -o test.pch
% cc -fmodule-map-file=somelib/somelib.modulemap -include-pch test.pch
-fsyntax-only main.m
fatal error: module 'SomeLib' in AST file
'/var/folders/g6/djx_5sv95d90j_6xgcfknlhc0000gn/C/org.llvm.clang.jrose/ModuleCache/1A3C5O0E31J8L/SomeLib-97ZVHKRIXZMZ.pcm'
(imported by AST file 'test.pch') is not defined in any loaded module map file;
maybe you need to load
'/Users/jrose/Desktop/modules-test/somelib/somelib.modulemap'?
note: consider adding '/Users/jrose/Desktop/modules-test/somelib' to the header
search path
note: imported by 'test.pch'</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>