RTEMS Source Builder | Add C and C++ standard option support for packages (#176)
Chris Johns (@chris)
gitlab at rtems.org
Thu May 14 00:28:44 UTC 2026
Chris Johns created an issue: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/176
Assignee: Chris Johns
Some packages need a specific version of the C and C++ language to build. The compilers on hosts are pushing the default language to newer versions to improve the base code bas however RTEMS needs to be able to set a version so a release can sit on package version and have it build on newer host systems. This is important on release branches.
Add:
1. `host_c_std`
2. `host_cxx_std`
3. `build_c_std`
4. `build_cxx_std`
to `defaults.mc` as empty settings. A package can then set a standard with:
```
%define host_c_std c11
```
These macros can be expanded into the `SB_HOST_CFLAGS` and `SB_HOST_CXXFLAGS` in the `__build_pre` shell support using a `%{?host_c_std --std=%{host_c_std}}` pattern.
--
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/176
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260514/787bebd3/attachment.htm>
More information about the bugs
mailing list