Skip to content

Commit

Permalink
Add C++20 flag
Browse files Browse the repository at this point in the history
  • Loading branch information
DecoyRS committed Feb 1, 2023
1 parent ab40d0f commit 0cb8966
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sharpmake.Generators/Rider/RiderJson.Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public static class CppLanguageStandard
{
public const string Cpp14 = "Cpp14";
public const string Cpp17 = "Cpp17";
public const string Cpp20 = "Cpp20";
public const string Latest = "Latest";

public const string Default = Cpp14;
Expand Down Expand Up @@ -107,6 +108,7 @@ public static string GetCppStandard(this IGenerationContext context)
Options.Option(Options.Vc.Compiler.CppLanguageStandard.GNU14, () => res = CppLanguageStandard.Cpp14),
Options.Option(Options.Vc.Compiler.CppLanguageStandard.CPP17, () => res = CppLanguageStandard.Cpp17),
Options.Option(Options.Vc.Compiler.CppLanguageStandard.GNU17, () => res = CppLanguageStandard.Cpp17),
Options.Option(Options.Vc.Compiler.CppLanguageStandard.CPP20, () => res = CppLanguageStandard.Cpp20),
Options.Option(Options.Vc.Compiler.CppLanguageStandard.Latest, () => res = CppLanguageStandard.Latest)
);
return res;
Expand Down Expand Up @@ -147,7 +149,9 @@ public static string GetCppStandard(this IGenerationContext context)
Options.Option(Options.XCode.Compiler.CppLanguageStandard.CPP14, () => res = CppLanguageStandard.Cpp14),
Options.Option(Options.XCode.Compiler.CppLanguageStandard.GNU14, () => res = CppLanguageStandard.Cpp14),
Options.Option(Options.XCode.Compiler.CppLanguageStandard.CPP17, () => res = CppLanguageStandard.Cpp17),
Options.Option(Options.XCode.Compiler.CppLanguageStandard.GNU17, () => res = CppLanguageStandard.Cpp17)
Options.Option(Options.XCode.Compiler.CppLanguageStandard.GNU17, () => res = CppLanguageStandard.Cpp17),
Options.Option(Options.XCode.Compiler.CppLanguageStandard.CPP20, () => res = CppLanguageStandard.Cpp20),
Options.Option(Options.XCode.Compiler.CppLanguageStandard.GNU20, () => res = CppLanguageStandard.Cpp20)
);
return res;
}
Expand Down

0 comments on commit 0cb8966

Please sign in to comment.