[clang] [clang][Modules] Handle relocated modules during implicit module builds (PR #181836)
Cyndy Ishida via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 17 10:31:45 PST 2026
================
@@ -1,7 +1,7 @@
[
{
"directory": "DIR",
- "command": "clang -E DIR/modules-fmodule-name-no-module-built.m -IInputs -D INCLUDE_HEADER2 -MD -MF DIR/modules_cdb.d -fmodules -fcxx-modules -fmodules-cache-path=DIR/module-cache -fimplicit-modules -fmodule-name=header3 -fimplicit-module-maps",
+ "command": "clang -E DIR/modules-fmodule-name-no-module-built.m -IDIR/Inputs -D INCLUDE_HEADER2 -MD -MF DIR/modules_cdb.d -fmodules -fcxx-modules -fmodules-cache-path=DIR/module-cache -fimplicit-modules -fmodule-name=header3 -fimplicit-module-maps",
----------------
cyndyishida wrote:
IIRC, yes, and I think the problem there is that `makeAbsoluteAndPreferred` does not always return an absolute path, and we don't verify it does. I didn't dig deep here, but looking through the code it tries to resolve an absolute path from the specified working directory, which would make sense that a search path does not always come from the same WD.
https://github.com/llvm/llvm-project/pull/181836
More information about the cfe-commits
mailing list