[CMake][compiler-rt] Support clang-cl in CompilerRTMockLLVMCMakeConfig
authorTobias Hieta <tobias@hieta.se>
Wed, 8 Feb 2023 08:26:49 +0000 (09:26 +0100)
committerTobias Hieta <tobias@hieta.se>
Fri, 10 Feb 2023 13:32:46 +0000 (14:32 +0100)
commit8ccde9368f94f7402129e6e61a02d7863f2b6283
tree0757fb082c0d2c222d42b3d8694f1b8c2b656c0a
parentb3477f579c86ac104a5789e9233e2dda83b9d048
[CMake][compiler-rt] Support clang-cl in CompilerRTMockLLVMCMakeConfig

clang-cl doesn't support -dumpmachine directly, so we need to
preface it with /clang: in order to get this probing function
to work.

This is needed in order to run cmake directly on the runtimes
directory.

Reviewed By: hans

Differential Revision: https://reviews.llvm.org/D143557
compiler-rt/cmake/Modules/CompilerRTMockLLVMCMakeConfig.cmake