[cmake] Add -fms-compatibility-version=19 when clang-cl gives errors about char16_t
authorReid Kleckner <rnk@google.com>
Wed, 30 Mar 2016 17:30:26 +0000 (17:30 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 30 Mar 2016 17:30:26 +0000 (17:30 +0000)
commit2b3db2c1bb435fca17ce45675e1f5c63e3ea91f4
tree30e6043a47de071941c2d1e74a15ef9e2e7bf8c4
parent8c18019d50127a79c92d6f6017bad0c0c83441d4
[cmake] Add -fms-compatibility-version=19 when clang-cl gives errors about char16_t

What we are really trying to do here is to figure out if we are using
the 2015 STL. Unfortunately, so far as I know the MSVC STL does not
define a version macro that we can check directly. Instead I wrote a
check to see if char16_t works.

llvm-svn: 264881
llvm/cmake/modules/HandleLLVMOptions.cmake