This is an attempt to get the fix the issue breaking the sanitizer windows bots (http://lab.llvm.org:8011/builders/sanitizer-windows/). I put a comment in explaining why I think this might work.
I'm not sure how else to fix it. If we want to use backslashes it has to be 4 backslashes. We could also use forward slashes. But we don't have the value of %(workdir) on the master, so we can't know. In one thread Galina suggested to use file(TO_CMAKE_PATH) but this would need to be done at the top level LLVM CMakeLists.txt file, which is a little scary, and furthermore CMake officially marks this method as "avoid" (reference: https://cmake.org/Wiki/CMake_FAQ#How_do_I_use_a_different_compiler.3F)
That said, if
file(TO_CMAKE_PATH "${CMAKE_CXX_COMPILER}" CMAKE_CXX_COMPILER) file(TO_CMAKE_PATH "${CMAKE_C_COMPILER}" CMAKE_C_COMPILER)
works and will not cause unforeseen problems, I'm open to trying it. But this is beyond my CMake expertise. +beanz and brad king who might be able to comment on the CMake method.