llvm.org GIT mirror llvm / a85ea41
[cmake] Explicitly set VS 2017 compatibility When cross-compiling using clang-cl 5.0 (which is currently the latest stable release of the compiler), the default MS compatibility level is set to VS 2013, which is too low to build LLVM. Explicitly set the compatibility level to VS 2017 to support cross-compiling LLVM for Windows using clang-cl 5.0. This will be a no-op when using clang-cl 6.0 and above, where the default MS compatibility level is already VS 2017. Differential Revision: https://reviews.llvm.org/D41157 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@320616 91177308-0d34-0410-b5e6-96231b3b80d8 Shoaib Meenai 1 year, 10 months ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
164164 set(COMPILE_FLAGS
166 -fms-compatibility-version=19.11
166167 -imsvc "${MSVC_INCLUDE}"
167168 -imsvc "${WINSDK_INCLUDE}/ucrt"
168169 -imsvc "${WINSDK_INCLUDE}/shared"