This is an archive of the discontinued LLVM Phabricator instance.

[clang][DebugInfo] Respect fmodule-file-home-is-cwd in skeleton CUs for clang modules
ClosedPublic

Authored by bulbazord on Sep 29 2022, 2:49 PM.

Details

Summary

When -fmodule-file-home-is-cwd and the path to the PCM is relative, we shouldn't assume that the path to the PCM is relative to the modulemap that produced it. To respect the option -fmodule-file-home-is-cwd, we should assume the path is relative to the current working directory.

Diff Detail

Event Timeline

bulbazord created this revision.Sep 29 2022, 2:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 29 2022, 2:49 PM
bulbazord requested review of this revision.Sep 29 2022, 2:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 29 2022, 2:49 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
rmaz accepted this revision.Sep 30 2022, 9:58 AM

Nice, LGTM, thanks!

This revision is now accepted and ready to land.Sep 30 2022, 9:58 AM