llvm.org GIT mirror llvm / 36409f3
[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 Zachary Turner 1 year, 11 months ago
2 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
4747 # configuration to load instead.
4848 config_map = litConfig.params.get('config_map')
4949 if config_map:
50 cfgpath = os.path.realpath(cfgpath)
5051 cfgpath = os.path.normpath(cfgpath)
5152 cfgpath = os.path.normcase(cfgpath)
5253 target = config_map.get(cfgpath)
77 def map_config(source_dir, site_config):
88 global config_map
9 source_dir = os.path.realpath(source_dir)
910 source_dir = os.path.normpath(source_dir)
1011 source_dir = os.path.normcase(source_dir)
1112 site_config = os.path.normpath(site_config)