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: unassignedclangb...@nondot.org
          Reporter: jordan_r...@apple.com
                CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to