Skip to content

Commit 52264f6

Browse files
committed
deprecate GCC older than 5.0
1 parent 7e2f458 commit 52264f6

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

.drone.star

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ def main(ctx):
2727
linux_cxx("UBSan Clang", "clang++-14", packages="clang-14 libstdc++-10-dev", buildtype="boost", buildscript="drone", image="cppalliance/droneubuntu2204:1", environment={'COMMENT': 'ubsan', 'B2_VARIANT': 'debug', 'B2_TOOLSET': 'clang-14', 'B2_CXXSTD': '11,14,17', 'B2_UBSAN': '1', 'B2_DEFINES': 'define=BOOST_NO_STRESS_TEST=1'}, globalenv=globalenv),
2828
linux_cxx("TSan", "g++-12", packages="g++-12", buildscript="drone", buildtype="boost", image="cppalliance/droneubuntu2204:1", environment={'COMMENT': 'tsan', 'B2_VARIANT': 'debug', 'B2_TOOLSET': 'gcc-12', 'B2_CXXSTD': '11,14,17', 'B2_TSAN': '1', 'B2_DEFINES': 'BOOST_NO_STRESS_TEST=1'}, globalenv=globalenv),
2929
linux_cxx("gcc 4.8 C++03 (no op)", "g++-4.8", packages="g++-4.8", image=linuxglobalimage, buildtype="boost", buildscript="drone", environment={"B2_TOOLSET": "gcc-4.8", "B2_CXXSTD": "03", 'B2_SEPARATE_BOOTSTRAP': '1'}, globalenv=globalenv),
30-
linux_cxx("gcc 4.8", "g++-4.8", packages="g++-4.8", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'gcc-4.8', 'B2_CXXSTD': '11', 'B2_SEPARATE_BOOTSTRAP': '1', 'DRONE_JOB_UUID': '0ade7c2cf9'}, globalenv=globalenv),
31-
linux_cxx("gcc 4.9", "g++-4.9", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'gcc-4.9', 'B2_CXXSTD': '11', 'B2_SEPARATE_BOOTSTRAP': '1', 'DRONE_JOB_UUID': 'b1d5781111'}, globalenv=globalenv),
30+
linux_cxx("gcc 4.8", "g++-4.8", packages="g++-4.8", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'gcc-4.8', 'B2_CXXSTD': '11', 'B2_SEPARATE_BOOTSTRAP': '1', 'DRONE_JOB_UUID': '0ade7c2cf9', 'B2_FLAGS': 'warnings=extra warnings-as-errors=on define=BOOST_ALLOW_DEPRECATED'}, globalenv=globalenv),
31+
linux_cxx("gcc 4.9", "g++-4.9", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'gcc-4.9', 'B2_CXXSTD': '11', 'B2_SEPARATE_BOOTSTRAP': '1', 'DRONE_JOB_UUID': 'b1d5781111', 'B2_FLAGS': 'warnings=extra warnings-as-errors=on define=BOOST_ALLOW_DEPRECATED'}, globalenv=globalenv),
3232
linux_cxx("gcc 5", "g++-5", packages="g++-5", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'gcc-5', 'B2_CXXSTD': '11', 'DRONE_JOB_UUID': '17ba079149'}, globalenv=globalenv),
3333
linux_cxx("gcc 6", "g++-6", packages="g++-6", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'gcc-6', 'B2_CXXSTD': '11,14', 'DRONE_JOB_UUID': '7b52009b64'}, globalenv=globalenv),
3434
linux_cxx("gcc 7", "g++-7", packages="g++-7", buildtype="boost", buildscript="drone", image=linuxglobalimage, environment={'B2_TOOLSET': 'gcc-7', 'B2_CXXSTD': '14,17', 'DRONE_JOB_UUID': 'bd307a3ec3'}, globalenv=globalenv),

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ Boost.JSON has been tested with the following compilers:
108108
* gcc: 4.8, 4.9, 5, 6, 7, 8, 9, 10, 11, 12
109109
* msvc: 14.0, 14.1, 14.2, 14.3
110110

111+
**Note: support for GCC 4.8 and 4.9 is deprecated and will stop in
112+
Boost 1.88.0.**
113+
111114
### Supported JSON Text
112115

113116
The library expects input text to be encoded using UTF-8, which is a

doc/qbk/overview.qbk

+3
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ Boost.JSON has been tested with the following compilers:
134134
* gcc: 4.8, 4.9, 5, 6, 7, 8, 9, 10, 11, 12
135135
* msvc: 14.0, 14.1, 14.2, 14.3
136136

137+
[important Support for GCC 4.8 and 4.9 is deprecated and will stop in
138+
Boost 1.88.0.]
139+
137140
[heading Supported JSON Text]
138141

139142
The library expects input text to be encoded using UTF-8, which is a

include/boost/json/detail/config.hpp

+5
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#define BOOST_JSON_DETAIL_CONFIG_HPP
1212

1313
#include <boost/config.hpp>
14+
#include <boost/config/pragma_message.hpp>
1415
#include <boost/assert.hpp>
1516
#include <boost/static_assert.hpp>
1617
#include <boost/throw_exception.hpp>
@@ -216,4 +217,8 @@ constexpr T static_const<T>::value;
216217
} // namespace json
217218
} // namespace boost
218219

220+
#if defined(BOOST_GCC) && BOOST_GCC < 50000 && !defined(BOOST_ALLOW_DEPRECATED)
221+
# pragma GCC warning "Support for GCC versions below 5.0 is deprecated and will stop in Boost 1.88.0. To suppress this message define macro BOOST_ALLOW_DEPRECATED."
222+
#endif
223+
219224
#endif

0 commit comments

Comments
 (0)