Translate some MSVC CMAKE_*_FLAGS to clang flags in clang_compile
authorReid Kleckner <reid@kleckner.net>
Fri, 13 Mar 2015 21:39:29 +0000 (21:39 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 13 Mar 2015 21:39:29 +0000 (21:39 +0000)
commita1410321f6ddfe0ce47eccfbadf2e1955588ed32
treea51e5bcea500ac813e2138c7662a5e6a15c9735b
parenta6ad7a542bb0f411b79b8e3a6c858b8fcdf4529e
Translate some MSVC CMAKE_*_FLAGS to clang flags in clang_compile

Passing MSVC-style cflags to the gcc-style clang driver will almost
always end badly. Just translate a couple of simple flags used by the
base CMake cflags like /D, /U, and /O.

llvm-svn: 232219
compiler-rt/cmake/Modules/CompilerRTCompile.cmake