OSDN Git Service

[lit] Use realpath when adding to the config map.
authorZachary Turner <zturner@google.com>
Mon, 18 Sep 2017 23:36:35 +0000 (23:36 +0000)
committerZachary Turner <zturner@google.com>
Mon, 18 Sep 2017 23:36:35 +0000 (23:36 +0000)
commit36409f332619d1ee97147eb96160f53a0d5f707d
tree2d91280a006cddadd6ffeccaed04177ea128b83a
parent2865ab6996164e7854d55c9e21c065fad7c26569
[lit] Use realpath when adding to the config map.

Since the path a user specifies to the llvm-lit script might be
different than the source tree they built from (since they could
be behind different symlinks), we need to use realpath to make
sure that path comparisons work as expected.

Even better would be to use a custom dictionary comparison with
actual file equivalence comparison semantics, but this is the
least friction to unbreak things for now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313594 91177308-0d34-0410-b5e6-96231b3b80d8
utils/lit/lit/discovery.py
utils/llvm-lit/llvm-lit.in