[cmake] Get the MSVC version by running cl rather than relying on MSVC_VERSION
authorReid Kleckner <rnk@google.com>
Wed, 30 Mar 2016 18:31:14 +0000 (18:31 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 30 Mar 2016 18:31:14 +0000 (18:31 +0000)
commit747dc2eb61b51f5e26a72ec41fde038eca9b7efb
tree7693c2589d15b316ae44fd035e1b36bf222cb197
parent88ad225e947b262882ae82fed9150b5aaef2a5f4
[cmake] Get the MSVC version by running cl rather than relying on MSVC_VERSION

MSVC_VERSION comes from the _MSC_VER macro, which won't correspond to
the STL version if the host compiler is clang-cl.

llvm-svn: 264901
compiler-rt/cmake/config-ix.cmake