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.
_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs