[Support] Allow configuring the preferred type of slashes on Windows
authorMartin Storsjö <martin@martin.st>
Wed, 13 Oct 2021 12:18:32 +0000 (12:18 +0000)
committerMartin Storsjö <martin@martin.st>
Fri, 5 Nov 2021 08:42:02 +0000 (10:42 +0200)
commitdf0ba47c36f6bd0865e3286853b76d37e037c2d7
tree167e4acbfd8bcd0756c82257d5605980481132c4
parentf4d83c56c99deb52769aab12bbd22b9bfeb0c617
[Support] Allow configuring the preferred type of slashes on Windows

Default to preferring forward slashes when built for MinGW, as
many usecases, when e.g. Clang is used as a drop-in replacement
for GCC, requires the compiler to output paths with forward slashes.

Not all tests pass yet, if configuring to prefer forward slashes though.

Differential Revision: https://reviews.llvm.org/D112787
llvm/CMakeLists.txt
llvm/include/llvm/Config/config.h.cmake
llvm/lib/Support/Path.cpp