This is an archive of the discontinued LLVM Phabricator instance.

[clang-move] Compare with real paths of symlinks
ClosedPublic

Authored by hokein on Oct 12 2016, 3:03 AM.

Details

Summary

MakeAbsolutePath does wrong things with symlinks previously. When comparing with a symlink, we need to compare with the real path of it. This fixes issues when the build directory is a symlink.

Diff Detail

Repository
rL LLVM

Event Timeline

hokein updated this revision to Diff 74352.Oct 12 2016, 3:03 AM
hokein retitled this revision from to [clang-move] Don't comparing absolute file path to relative path..
hokein updated this object.
hokein added a reviewer: ioeric.
hokein added subscribers: bkramer, cfe-commits.
hokein updated this revision to Diff 74375.Oct 12 2016, 7:33 AM

Update the patch based on offline discussion.

hokein retitled this revision from [clang-move] Don't comparing absolute file path to relative path. to [clang-move] Compare with real paths of symlinks.Oct 12 2016, 7:38 AM
hokein updated this object.
ioeric accepted this revision.Oct 12 2016, 7:46 AM
ioeric edited edge metadata.

Lg with one nit.

clang-move/ClangMove.cpp
410 ↗(On Diff #74375)

This duplicates MakeAbsolutePath in line 400

This revision is now accepted and ready to land.Oct 12 2016, 7:46 AM
hokein updated this revision to Diff 74382.Oct 12 2016, 7:57 AM
hokein edited edge metadata.

Update.

This revision was automatically updated to reflect the committed changes.