Skip to content

Commit cd81723

Browse files
committed
[clang-cl] Bump default -fms-compatibility-version to 19.14
clang-cl MSVC required version is 19.20 now. Update the default -fms-compatibility-version to 19.14. Differential Revision: https://reviews.llvm.org/D114639
1 parent 62e4a77 commit cd81723

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/lib/Driver/ToolChains/MSVC.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,8 +1393,8 @@ VersionTuple MSVCToolChain::computeMSVCVersion(const Driver *D,
13931393
if (MSVT.empty() &&
13941394
Args.hasFlag(options::OPT_fms_extensions, options::OPT_fno_ms_extensions,
13951395
IsWindowsMSVC)) {
1396-
// -fms-compatibility-version=19.14 is default, aka 2017, 15.7
1397-
MSVT = VersionTuple(19, 14);
1396+
// -fms-compatibility-version=19.20 is default, aka 2019, 16.x
1397+
MSVT = VersionTuple(19, 20);
13981398
}
13991399
return MSVT;
14001400
}

clang/test/Driver/cl-options.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@
757757

758758
// Validate that the default triple is used when run an empty tools dir is specified
759759
// RUN: %clang_cl -vctoolsdir "" -### -- %s 2>&1 | FileCheck %s --check-prefix VCTOOLSDIR
760-
// VCTOOLSDIR: "-triple" "{{[a-zA-Z0-9_-]*}}-pc-windows-msvc19.14.0"
760+
// VCTOOLSDIR: "-triple" "{{[a-zA-Z0-9_-]*}}-pc-windows-msvc19.20.0"
761761

762762
// Validate that built-in include paths are based on the supplied path
763763
// RUN: %clang_cl --target=aarch64-pc-windows-msvc -vctoolsdir "/fake" -winsdkdir "/foo" -winsdkversion 10.0.12345.0 -### -- %s 2>&1 | FileCheck %s --check-prefix FAKEDIR

0 commit comments

Comments
 (0)