This is an archive of the discontinued LLVM Phabricator instance.

[clang] serialize ORIGINAL_PCH_DIR relative to BaseDirectory
ClosedPublic

Authored by rmaz on May 4 2022, 10:28 AM.

Details

Summary

This diff changes the serialization of the ORIGINAL_PCH_DIR
entry in module files to be serialized relative to the module's
BaseDirectory. This will allow for the module to be relocatable
across machines.

The path is restored relative to the module's BaseDirectory on
deserialization.

Diff Detail

Event Timeline

rmaz created this revision.May 4 2022, 10:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2022, 10:28 AM
rmaz requested review of this revision.May 4 2022, 10:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2022, 10:28 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
rmaz updated this revision to Diff 427731.May 6 2022, 1:43 PM

fix for missing temp dir in test

Looks good to me, but perhaps leave it a few days for others to comment (my familiarity with this code is low). I do know people want relocatable outputs though.

rmaz added a comment.May 11 2022, 8:12 AM

Looks good to me, but perhaps leave it a few days for others to comment (my familiarity with this code is low). I do know people want relocatable outputs though.

Are we good to go with this one too now?

urnathan accepted this revision.May 12 2022, 4:20 AM

good to go, thanks!

This revision is now accepted and ready to land.May 12 2022, 4:20 AM
This revision was automatically updated to reflect the committed changes.