Index: llvm/utils/lit/lit/discovery.py =================================================================== --- llvm/utils/lit/lit/discovery.py +++ llvm/utils/lit/lit/discovery.py @@ -48,10 +48,8 @@ # configuration to load instead. config_map = litConfig.params.get('config_map') if config_map: - cfgpath = os.path.realpath(cfgpath) - cfgpath = os.path.normpath(cfgpath) - cfgpath = os.path.normcase(cfgpath) - target = config_map.get(cfgpath) + source_inode = os.stat(cfgpath) + target = config_map.get(source_inode) if target: cfgpath = target Index: llvm/utils/llvm-lit/llvm-lit.in =================================================================== --- llvm/utils/llvm-lit/llvm-lit.in +++ llvm/utils/llvm-lit/llvm-lit.in @@ -7,11 +7,9 @@ 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) + source_inode = os.stat(source_dir).st_ino site_config = os.path.normpath(site_config) - config_map[source_dir] = site_config + config_map[source_inode] = site_config # Variables configured at build time. llvm_source_root = "@LLVM_SOURCE_DIR@"