Revert "[lit] Keep original cfg file case around."
authorNico Weber <thakis@chromium.org>
Wed, 15 Apr 2020 21:17:18 +0000 (17:17 -0400)
committerNico Weber <thakis@chromium.org>
Wed, 15 Apr 2020 21:19:39 +0000 (17:19 -0400)
commitb9fd375d75d4bbf34453696127854d0192e3ccf6
tree71c73edf3d12fb24f883ea09066cbda89b936ee8
parent92e8af0ecbe7eb36bc03a211afa9151c81b7b531
Revert "[lit] Keep original cfg file case around."

This reverts commit bc3f54de1827e58655c34477d09211cbc42589bd.

The patch breaks in the following two scenarios:

1. When manually passing an absolute path to llvm-lit with a lower-case
   drive letter: `python bin\llvm-lit.py -sv c:\llvm-project\clang\test\PCH`

2. When the PWD has a lower-case drive letter, like after running
   `cd c:\` with a lower-case "c:" (cmd's default is upper-case, but
   it takes case-ness from what's passed to `cd` apparently).
llvm/cmake/modules/AddLLVM.cmake
llvm/utils/lit/lit/discovery.py
llvm/utils/lit/lit/llvm/config.py
llvm/utils/lit/tests/Inputs/config-map-discovery/driver.py
llvm/utils/llvm-lit/llvm-lit.in