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