[clang] Make PCH's respect any VFS specified. (PR #106577)
Neil Henning via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 4 10:58:16 PDT 2024
sheredom wrote:
> > Build machine A with a path E:/foo/header.h which wants to make a PCH from it. We want it to remap E:/foo -> Z:/fake.
>
> What I have in mind is that you have a VFS on build machine A that maps Z:/fake (virtual path) -> E:/foo (external path), with use-external-names: false (EDIT: and your compiler invocation is also written in terms of Z:/fake). In principle, this should give you a PCH (+ Modules) that only refers to Z:/fake, the virtual path. Another way to think about this is except for the VFS layer, clang would not even know those external paths exist, only about Z:/fake.
Oh - the penny is finally dropping. Lemme give that a try!
https://github.com/llvm/llvm-project/pull/106577
More information about the cfe-commits
mailing list