[clang] Make PCH's respect any VFS specified. (PR #106577)

Neil Henning via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 11 13:05:06 PDT 2024


sheredom wrote:

> Right, that's what I meant by "Is it trying to set it too early before the VFS is created or something?". We could make the driver setup the VFS like the frontend would and do that before checking the -working-directory; not sure if there's a reason we don't do that already. Or maybe we could ignore the failure to set the working directory in the driver and check it in the frontend? That might cause some poor diagnostics if the driver is accessing relative paths and the working directory wasn't set successfully

Yeah for sure! I'll mock up a solution and see how it fares with the rest of the test suite and get back to you.

https://github.com/llvm/llvm-project/pull/106577


More information about the cfe-commits mailing list