Skip to content

Commit dc0f7ec

Browse files
authored
[Driver] Fix default MSVC version setting for -fms-compatibilty-version (#4165)
The input for -fms-compatibilty-version is expected to be of format: Major[.Minor[.Micro[.Build]]] Minor can only be 2 digits, Micro can only be 5, and 'build' is ignored.
1 parent bdedac9 commit dc0f7ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Driver/ToolChains/Clang.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4639,7 +4639,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
46394639
MSVT.getAsString()));
46404640
else {
46414641
const char *LowestMSVCSupported =
4642-
"191025017"; // VS2017 v15.0 (initial release)
4642+
"19.10.25017"; // VS2017 v15.0 (initial release)
46434643
CmdArgs.push_back(Args.MakeArgString(
46444644
Twine("-fms-compatibility-version=") + LowestMSVCSupported));
46454645
}

0 commit comments

Comments
 (0)