Skip to content

Commit

Permalink
Merge branch 'add-c-20-support-for-androidagde-platform' into 'main'
Browse files Browse the repository at this point in the history
Add C++20 support for AndroidAgde platform

See merge request Sharpmake/sharpmake!589
  • Loading branch information
jspelletier committed Dec 12, 2024
2 parents d4ec68e + 5a9491f commit 734b3e0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,14 @@ public override void SelectCompilerOptions(IGenerationContext context)
Options.Option(Options.Agde.Compiler.CppLanguageStandard.Cpp14, () => { options["CppLanguageStandard"] = "cpp14"; cmdLineOptions["CppLanguageStd"] = "-std=c++14"; }),
Options.Option(Options.Agde.Compiler.CppLanguageStandard.Cpp1z, () => { options["CppLanguageStandard"] = "cpp1z"; cmdLineOptions["CppLanguageStd"] = "-std=c++1z"; }),
Options.Option(Options.Agde.Compiler.CppLanguageStandard.Cpp17, () => { options["CppLanguageStandard"] = "cpp17"; cmdLineOptions["CppLanguageStd"] = "-std=c++17"; }),
Options.Option(Options.Agde.Compiler.CppLanguageStandard.Cpp20, () => { options["CppLanguageStandard"] = "cpp20"; cmdLineOptions["CppLanguageStd"] = "-std=c++20"; }),
Options.Option(Options.Agde.Compiler.CppLanguageStandard.Gnupp98, () => { options["CppLanguageStandard"] = "gnupp98"; cmdLineOptions["CppLanguageStd"] = "-std=gnu++98"; }),
Options.Option(Options.Agde.Compiler.CppLanguageStandard.Gnupp03, () => { options["CppLanguageStandard"] = "gnupp03"; cmdLineOptions["CppLanguageStd"] = "-std=gnu++03"; }),
Options.Option(Options.Agde.Compiler.CppLanguageStandard.Gnupp11, () => { options["CppLanguageStandard"] = "gnupp11"; cmdLineOptions["CppLanguageStd"] = "-std=gnu++11"; }),
Options.Option(Options.Agde.Compiler.CppLanguageStandard.Gnupp14, () => { options["CppLanguageStandard"] = "gnupp14"; cmdLineOptions["CppLanguageStd"] = "-std=gnu++14"; }),
Options.Option(Options.Agde.Compiler.CppLanguageStandard.Gnupp1z, () => { options["CppLanguageStandard"] = "gnupp1z"; cmdLineOptions["CppLanguageStd"] = "-std=gnu++1z"; }),
Options.Option(Options.Agde.Compiler.CppLanguageStandard.Gnupp17, () => { options["CppLanguageStandard"] = "gnupp17"; cmdLineOptions["CppLanguageStd"] = "-std=gnu++17"; })
Options.Option(Options.Agde.Compiler.CppLanguageStandard.Gnupp17, () => { options["CppLanguageStandard"] = "gnupp17"; cmdLineOptions["CppLanguageStd"] = "-std=gnu++17"; }),
Options.Option(Options.Agde.Compiler.CppLanguageStandard.Gnupp20, () => { options["CppLanguageStandard"] = "gnupp20"; cmdLineOptions["CppLanguageStd"] = "-std=gnu++20"; })
);

context.SelectOption
Expand Down
18 changes: 17 additions & 1 deletion Sharpmake/Options.Agde.cs
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,14 @@ public enum CppLanguageStandard
/// </remarks>
Cpp17,

/// <summary>
/// C++20
/// </summary>
/// <remarks>
/// C++20 Language Standard.
/// </remarks>
Cpp20,

/// <summary>
/// C++98 (GNU Dialect)
/// </summary>
Expand Down Expand Up @@ -482,7 +490,15 @@ public enum CppLanguageStandard
/// <remarks>
/// C++17 (GNU Dialect) Language Standard.
/// </remarks>
Gnupp17
Gnupp17,

/// <summary>
/// C++20 (GNU Dialect)
/// </summary>
/// <remarks>
/// C++20 (GNU Dialect) Language Standard.
/// </remarks>
Gnupp20
}

/// <summary>
Expand Down

0 comments on commit 734b3e0

Please sign in to comment.