This revision was automatically updated to reflect the committed changes. Closed by commit rL352704: lit: Let lit.util.which() return a normcase()ed path (authored by nico, committed by ).
Changed prior to commit: https://reviews.llvm.org/D57343?vs=183912&id=184408#toc Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D57343/new/ https://reviews.llvm.org/D57343 Files: llvm/trunk/utils/lit/lit/util.py Index: llvm/trunk/utils/lit/lit/util.py =================================================================== --- llvm/trunk/utils/lit/lit/util.py +++ llvm/trunk/utils/lit/lit/util.py @@ -197,7 +197,7 @@ # Check for absolute match first. if os.path.isabs(command) and os.path.isfile(command): - return os.path.normpath(command) + return os.path.normcase(os.path.normpath(command)) # Would be nice if Python had a lib function for this. if not paths: @@ -215,7 +215,7 @@ for ext in pathext: p = os.path.join(path, command + ext) if os.path.exists(p) and not os.path.isdir(p): - return os.path.normpath(p) + return os.path.normcase(os.path.normpath(p)) return None
Index: llvm/trunk/utils/lit/lit/util.py =================================================================== --- llvm/trunk/utils/lit/lit/util.py +++ llvm/trunk/utils/lit/lit/util.py @@ -197,7 +197,7 @@ # Check for absolute match first. if os.path.isabs(command) and os.path.isfile(command): - return os.path.normpath(command) + return os.path.normcase(os.path.normpath(command)) # Would be nice if Python had a lib function for this. if not paths: @@ -215,7 +215,7 @@ for ext in pathext: p = os.path.join(path, command + ext) if os.path.exists(p) and not os.path.isdir(p): - return os.path.normpath(p) + return os.path.normcase(os.path.normpath(p)) return None
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits