Open
Description
To reproduce:
touch a.h
clang++ -x c++-header a.h -Xclang -fmodule-file-home-is-cwd -o a.pcm
clang++ -module-file-info a.pcm | grep "Input file"
Got: /absolute/path/to/a.h
Want: a.h
The same applies to input pcm files, though I don't have a simple reproducer for that.
When I add -fmodule-file=obj/buildtools/third_party/libc++/std/module.pcm
, I find that the module info output contains Imports module 'std': /absolute/path/to/obj/buildtools/third_party/libc++/std/module.pcm
(And yes, I checked - the file itself contains absolute paths, it's not just output by the tool)
This is a problem for us, because we want to use remote execution, which requires that our paths be relative.