Remove the hard dependency on boost::system compatibility library to fix builds with Boost 1.89.0#16163
Conversation
|
Thank you for your contribution to the Solidity compiler! A team member will follow up shortly. If you haven't read our contributing guidelines and our review checklist before, please do it now, this makes the reviewing process and accepting your contribution smoother. If you have any questions or need our help, feel free to post them in the PR or talk to us directly on the #solidity-dev channel on Matrix. |
clonker
left a comment
There was a problem hiding this comment.
Thank you for getting this rolling! I think the usage of the Boost_SYSTEM_LIBRARY is not optimal and I'd rather not rely on it
I'd recommend just bumping minimum Boost version to 1.69 and removing the fallback for simplicity. We don't have all a strong reason to support such old versions, and it's very likely that we'll have to bump minimum Boost version to 1.75 anyway due to #16084. |
|
BTW, we don't use |
boost::system compatibility library to fix builds with Boost 1.89.0
Fair point. We can do that in a follow-up and think about bumping it to 1.70, then it always comes with a cmake config and we can leave out the entire branch: |
Boost.System has been header-only since Boost 1.69 and will be dropping the compatibility stub library in Boost 1.89 (boostorg/system@7a495bb). Since the `system` component is only needed for Boost < 1.69, it can be added to `BOOST_COMPONENTS` in the fallback find_package. Signed-off-by: Michael Cho <michael@michaelcho.dev>
Boost.System has been header-only since Boost 1.691 and will be dropping the compatibility stub library in Boost 1.89 (boostorg/system@7a495bb).
Since the
systemcomponent is only needed for Boost < 1.69, it can be added toBOOST_COMPONENTSin the fallback find_package.Footnotes
https://www.boost.org/doc/libs/1_69_0/libs/system/doc/html/system.html#changes_in_boost_1_69 ↩