[llvm] 15eaefa - [cmake] Fix ms-compat version in WinMsvc.cmake

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 9 02:13:51 PDT 2022


Author: Tobias Hieta
Date: 2022-08-09T11:13:49+02:00
New Revision: 15eaefa5fe3608b03f1abefc31129efaf9eab88e

URL: https://github.com/llvm/llvm-project/commit/15eaefa5fe3608b03f1abefc31129efaf9eab88e
DIFF: https://github.com/llvm/llvm-project/commit/15eaefa5fe3608b03f1abefc31129efaf9eab88e.diff

LOG: [cmake] Fix ms-compat version in WinMsvc.cmake

As pointed out by @glandium here https://reviews.llvm.org/D130689#3709088
we updated the requirement of MSVC compatibility but not the flag passed when
using WinMsvc.cmake as a toolchain.

Added: 
    

Modified: 
    llvm/cmake/platforms/WinMsvc.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/platforms/WinMsvc.cmake b/llvm/cmake/platforms/WinMsvc.cmake
index df81c14201c2c..77c3ab3d8fc11 100644
--- a/llvm/cmake/platforms/WinMsvc.cmake
+++ b/llvm/cmake/platforms/WinMsvc.cmake
@@ -257,7 +257,7 @@ set(CROSS_TOOLCHAIN_FLAGS_NATIVE "${_CTF_NATIVE_DEFAULT}" CACHE STRING "")
 set(COMPILE_FLAGS
     -D_CRT_SECURE_NO_WARNINGS
     --target=${TRIPLE_ARCH}-windows-msvc
-    -fms-compatibility-version=19.20
+    -fms-compatibility-version=19.27
     -vctoolsversion ${MSVC_VER}
     -winsdkversion ${WINSDK_VER}
     -winsysroot ${LLVM_WINSYSROOT})


        


More information about the llvm-commits mailing list