[llvm-bugs] [Bug 36245] New: -fmodule-map-file processed after loading PCH
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Feb 5 16:31:50 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36245
Bug ID: 36245
Summary: -fmodule-map-file processed after loading PCH
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Modules
Assignee: unassignedclangbugs at nondot.org
Reporter: jordan_rose at apple.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Created attachment 19813
--> https://bugs.llvm.org/attachment.cgi?id=19813&action=edit
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'
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180206/8f275990/attachment.html>
More information about the llvm-bugs
mailing list