diff options
author | Zachary Turner <zturner@google.com> | 2017-09-18 23:36:35 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-09-18 23:36:35 +0000 |
commit | 36409f332619d1ee97147eb96160f53a0d5f707d (patch) | |
tree | 2d91280a006cddadd6ffeccaed04177ea128b83a /utils/llvm-lit | |
parent | 2865ab6996164e7854d55c9e21c065fad7c26569 (diff) |
[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
Diffstat (limited to 'utils/llvm-lit')
-rwxr-xr-x | utils/llvm-lit/llvm-lit.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/llvm-lit/llvm-lit.in b/utils/llvm-lit/llvm-lit.in index efad97ade7e..a12056dcc55 100755 --- a/utils/llvm-lit/llvm-lit.in +++ b/utils/llvm-lit/llvm-lit.in @@ -7,6 +7,7 @@ config_map = {} def map_config(source_dir, site_config): global config_map + source_dir = os.path.realpath(source_dir) source_dir = os.path.normpath(source_dir) source_dir = os.path.normcase(source_dir) site_config = os.path.normpath(site_config) |