Skip to content

Commit 86fe8c7

Browse files
committed
Fix compat with newer MSVC headers
allow using older versions of clang than 19 until mono#1942
1 parent e093f71 commit 86fe8c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Parser/ParserOptions.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,11 @@ public void SetupMSVC(VisualStudioVersion vsVersion)
156156

157157
var clVersion = MSVCToolchain.GetCLVersion(vsVersion);
158158
ToolSetToUse = clVersion.Major * 10000000 + clVersion.Minor * 100000;
159-
159+
160160
AddArguments("-fms-extensions");
161161
AddArguments("-fms-compatibility");
162-
AddArguments("-fdelayed-template-parsing");
162+
AddArguments("-fdelayed-template-parsing");
163+
AddArguments("-D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH");
163164
}
164165

165166
/// <summary>

0 commit comments

Comments
 (0)