Skip to content

Commit

Permalink
Extend GNU toolchain language standard options for MBS
Browse files Browse the repository at this point in the history
  • Loading branch information
jld01 committed Dec 29, 2024
1 parent 87660ae commit 95a8c19
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# IBM Corporation
# John Dallaway - add library grouping option (#608)
# John Dallaway - extend optimization options (#828)
# John Dallaway - extend language standard options (#944)
###############################################################################

# plugin names
Expand Down Expand Up @@ -121,11 +122,15 @@ Option.Posix.Dialect.default=
Option.Posix.Dialect.c90=ISO C90 / ANSI C89 (-std=c90)
Option.Posix.Dialect.c99=ISO C99 (-std=c99)
Option.Posix.Dialect.c11=ISO C11 (-std=c11)
Option.Posix.Dialect.c17=ISO C17 (-std=c17)
Option.Posix.Dialect.c23=ISO C23 (-std=c23)
Option.Posix.Dialect.c++98=ISO C++98 (-std=c++98)
Option.Posix.Dialect.c++11=ISO C++11 (-std=c++11)
Option.Posix.Dialect.c++14=ISO C++14 (-std=c++14)
Option.Posix.Dialect.c++17=ISO C++17 (-std=c++17)
Option.Posix.Dialect.c++2a=ISO C++20 (-std=c++2a)
Option.Posix.Dialect.c++2a=ISO C++20 (-std=c++20)
Option.Posix.Dialect.c++23=ISO C++23 (-std=c++23)
Option.Posix.Dialect.c++26=ISO C++26 (-std=c++26)
Option.Posix.Dialect.Flags=Other dialect flags

Option.Posix.PreprocOnly=Preprocess only (-E)
Expand Down
19 changes: 18 additions & 1 deletion build/org.eclipse.cdt.managedbuilder.gnu.ui/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Contributors:
John Dallaway - add assembler debug level option (#727)
John Dallaway - extend optimization options (#828)
John Dallaway - add archiver other objects option (#653)
John Dallaway - extend language standard options (#944)
-->
<plugin>
<!-- Managed Make Builder Tool Specifications -->
Expand Down Expand Up @@ -969,6 +970,14 @@ Contributors:
name="%Option.Posix.Dialect.c11"
command="-std=c11"
id="gnu.c.compiler.dialect.c11" />
<enumeratedOptionValue
name="%Option.Posix.Dialect.c17"
command="-std=c17"
id="gnu.c.compiler.dialect.c17" />
<enumeratedOptionValue
name="%Option.Posix.Dialect.c23"
command="-std=c23"
id="gnu.c.compiler.dialect.c23" />
</option>
<option
name="%Option.Posix.Dialect.Flags"
Expand Down Expand Up @@ -1462,8 +1471,16 @@ Contributors:
id="gnu.cpp.compiler.dialect.c++17" />
<enumeratedOptionValue
name="%Option.Posix.Dialect.c++2a"
command="-std=c++2a"
command="-std=c++20"
id="gnu.cpp.compiler.dialect.c++2a" />
<enumeratedOptionValue
name="%Option.Posix.Dialect.c++23"
command="-std=c++23"
id="gnu.cpp.compiler.dialect.c++23" />
<enumeratedOptionValue
name="%Option.Posix.Dialect.c++26"
command="-std=c++26"
id="gnu.cpp.compiler.dialect.c++26" />
</option>
<option
name="%Option.Posix.Dialect.Flags"
Expand Down

0 comments on commit 95a8c19

Please sign in to comment.