Skip to content

[clang] fmodule-file-home-is-cwd doesn't work #144470

Open
@matts1

Description

@matts1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:driver'clang' and 'clang++' user-facing binaries. Not 'clang-cl'clang:modulesC++20 modules and Clang Header Modules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions