This is an archive of the discontinued LLVM Phabricator instance.

[clang] don't serialize MODULE_DIRECTORY with ModuleFileHomeIsCwd
ClosedPublic

Authored by rmaz on Apr 4 2023, 12:37 PM.

Details

Summary

Fix a bug in the MODULE_DIRECTORY serialization logic
that would cause MODULE_DIRECTORY to be serialized when
-fmodule-file-home-is-cwd is specified.

This matches the original logic added in:
https://github.com/apple/llvm-project/commit/f7b41371d9ede1aecf0930e5bd4a463519264633

Diff Detail

Event Timeline

rmaz created this revision.Apr 4 2023, 12:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 4 2023, 12:37 PM
rmaz requested review of this revision.Apr 4 2023, 12:37 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 4 2023, 12:37 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
rmaz edited the summary of this revision. (Show Details)
keith accepted this revision.Apr 4 2023, 12:44 PM
keith added inline comments.
clang/test/Modules/module-file-home-is-cwd.m
7–9

Instead of doing 2 invocations you can do --check-prefixes=CHECK,INPUT

This revision is now accepted and ready to land.Apr 4 2023, 12:44 PM