[clang] Support '-fmodule-file-home-is-cwd' for C++ modules. (PR #135147)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 10 18:49:54 PDT 2025


ChuanqiXu9 wrote:

> Separately, even with named modules, with or without `-fmodules-embed-all-files`, the `INPUT_FILE` paths in the PCM are still absolute. I guess with `-fmodules-embed-all-files` those paths are not used since the source files are embedded, which I suppose is how it avoids problems with the absolute paths. But if we want relocatable modules without using `-fmodules-embed-all-files` though, is there a solution for that?

`-fmodules-embed-all-files` doesn't solve the problem for encoding/decoding file paths. It solves the problem when we want to access file in the BMIs.



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


More information about the cfe-commits mailing list