http://llvm.org/bugs/show_bug.cgi?id=15207

            Bug ID: 15207
           Summary: modules do not work with relative -I paths
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

$ mkdir bar
$ touch bar/foo.h
$ echo 'module foo { header "foo.h" }' > bar/module.map
$ echo '@import foo;' > foo.mm
$ clang foo.mm -Xclang -fmodules -I bar -c
<module-includes>:1:9: fatal error: 'bar/foo.h' file not found
#import "bar/foo.h"
        ^
1 error generated.
$ clang foo.mm -Xclang -fmodules -I $PWD/bar -c
$

I believe the problem is that we run the module compilation from within the
directory containing the module.map file, but the -I paths are relative to the
directory containing the original source file.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to