This is an archive of the discontinued LLVM Phabricator instance.

[Dexter] Use PurePath to compare paths in Dexter commands
ClosedPublic

Authored by StephenTozer on Jun 6 2022, 4:02 AM.

Details

Summary

Prior to this patch, when comparing the paths of source files in Dexter commands, we would use os.samefile. This function performs actual file operations and requires the files to exist on the current system; this is suitable when running the test for the first time, but renders the DextIR output files non-portable, and unusable if the source files no longer exist in their original location.

Diff Detail

Event Timeline

StephenTozer created this revision.Jun 6 2022, 4:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 6 2022, 4:02 AM
StephenTozer requested review of this revision.Jun 6 2022, 4:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 6 2022, 4:02 AM
Orlando accepted this revision.Jun 7 2022, 2:45 AM

LGTM

This revision is now accepted and ready to land.Jun 7 2022, 2:45 AM
jmorse accepted this revision.Jun 8 2022, 6:15 AM

I endorse anything that involves touching the filesystem less in the middle of tools. Hurrah!

This revision was landed with ongoing or failed builds.Jun 8 2022, 8:29 AM
This revision was automatically updated to reflect the committed changes.