[CMake][compiler-rt] Replace Windows backslashes with CMake ones
authorPetr Hosek <phosek@google.com>
Tue, 28 Jan 2020 03:20:02 +0000 (19:20 -0800)
committerPetr Hosek <phosek@google.com>
Wed, 5 Feb 2020 06:35:31 +0000 (22:35 -0800)
commit7800310cb50408ba42f5321f7de956fb69a9efda
tree50da27a54dc39081d9c3882900a19b8fdd59bff4
parent4a2fa552992f54203a13abc7a0e265627e1dc34e
[CMake][compiler-rt] Replace Windows backslashes with CMake ones

XRay builds uses llvm-config to obtain the ldflags and libs and then
passes those to CMake. Unfortunately, this breaks on Windows because
CMake tries to interpret backslashes followed by certain characters
as flags. We need to rewrite these into forward slashes that are used
by CMake (even on Windows).

Differential Revision: https://reviews.llvm.org/D73523
compiler-rt/cmake/Modules/CompilerRTUtils.cmake