This is an archive of the discontinued LLVM Phabricator instance.

[clang][deps] Fix modulemap file path for implementation of module
ClosedPublic

Authored by benlangmuir on Jan 24 2023, 12:54 PM.

Details

Summary

Use the name "as requested" for the path of the implemented module's modulemap file, just as we do for other modulemap file paths. This fixes fatal errors with modules where we tried to find framework headers relative to the wrong directory when imported by an implementation file of the same module.

Diff Detail

Event Timeline

benlangmuir created this revision.Jan 24 2023, 12:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 24 2023, 12:54 PM
benlangmuir requested review of this revision.Jan 24 2023, 12:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 24 2023, 12:54 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
jansvoboda11 added inline comments.Jan 24 2023, 1:01 PM
clang/test/ClangScanDeps/modules-implementation-vfs.m
68–69

What purpose does this check serve?

benlangmuir marked an inline comment as done.
benlangmuir added inline comments.
clang/test/ClangScanDeps/modules-implementation-vfs.m
68–69

Added a comment to explain this check.

jansvoboda11 accepted this revision.Jan 24 2023, 1:13 PM

LGTM.

clang/test/ClangScanDeps/modules-implementation-vfs.m
68–69

Makes sense now, thanks!

This revision is now accepted and ready to land.Jan 24 2023, 1:13 PM
This revision was landed with ongoing or failed builds.Jan 27 2023, 11:37 AM
This revision was automatically updated to reflect the committed changes.
benlangmuir marked an inline comment as done.