[CMake] Don't use llvm_replace_compiler_option
authorMartin Storsjo <martin@martin.st>
Fri, 1 Mar 2019 22:30:17 +0000 (22:30 +0000)
committerMartin Storsjo <martin@martin.st>
Fri, 1 Mar 2019 22:30:17 +0000 (22:30 +0000)
commitad596c8d8c4f4744bcb8c14977987f01d5b99ef3
tree465d4d51936f1d404986aa1f249bdcf6baa1b5c9
parent05394af3ffd91ceceabb5e28e47ab0976471b8df
[CMake] Don't use llvm_replace_compiler_option

Building compiler-rt standalone outside of the main llvm
tree is supported, and in this case, the llvm cmake modules
are unavailable. (And even if they are available, it requires
including LLVMProcessSources.cmake, which currently isn't
included.)

This fixes building compiler-rt standalone with MSVC/clang-cl.

Differential Revision: https://reviews.llvm.org/D58767

llvm-svn: 355237
compiler-rt/CMakeLists.txt