summaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-11-27 09:23:15 +0000
committerMartin Storsjo <martin@martin.st>2018-11-27 09:23:15 +0000
commit8b2ba6185b1df7b9ebaae91cc831c9be16eeefa0 (patch)
treef9bc949c92399f092b04d51abe2c04eb9d483313 /cmake/Modules
parent7fedff547228be9aa6da1f2690eaf551b1ab4c6e (diff)
downloadcompiler-rt-8b2ba6185b1df7b9ebaae91cc831c9be16eeefa0.tar.gz
[CMake] Add a missing case of TO_CMAKE_PATH
This fixes building sanitizers for mingw natively. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@347646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/HandleCompilerRT.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/Modules/HandleCompilerRT.cmake b/cmake/Modules/HandleCompilerRT.cmake
index 364cdccc8..61b779278 100644
--- a/cmake/Modules/HandleCompilerRT.cmake
+++ b/cmake/Modules/HandleCompilerRT.cmake
@@ -13,6 +13,7 @@ function(find_compiler_rt_library name variable)
OUTPUT_VARIABLE LIBRARY_FILE
)
string(STRIP "${LIBRARY_FILE}" LIBRARY_FILE)
+ file(TO_CMAKE_PATH "${LIBRARY_FILE}" LIBRARY_FILE)
string(REPLACE "builtins" "${name}" LIBRARY_FILE "${LIBRARY_FILE}")
if (NOT HAD_ERROR AND EXISTS "${LIBRARY_FILE}")
message(STATUS "Found compiler-rt ${name} library: ${LIBRARY_FILE}")