Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update abseil to the latest LTS. #1725

Merged
merged 3 commits into from
Jan 15, 2024
Merged

Conversation

bstaletic
Copy link
Collaborator

@bstaletic bstaletic commented Jan 9, 2024

This should be enough to fix ycm-core/YouCompleteMe#4212

@Jaywalker, would you mind double checking my choice of abseil commit?

@puremourning Abseil's cmake is warning about this:

https://github.com/abseil/abseil-cpp/blob/lts_2023_08_02/CMakeLists.txt#L73-L78

We should figure out how to set that.


This change is Reviewable

Instead of reinventing FetchContent_MakeAvailable (badly), we can just
use the CMake provided utility.

It is introduced in cmake 3.14, which also matches our minim required
cmake version.
Copy link

codecov bot commented Jan 9, 2024

Codecov Report

Merging #1725 (4d1accc) into master (b34008a) will not change coverage.
Report is 2 commits behind head on master.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1725   +/-   ##
=======================================
  Coverage   95.47%   95.47%           
=======================================
  Files          83       83           
  Lines        8177     8177           
  Branches      163      163           
=======================================
  Hits         7807     7807           
  Misses        320      320           
  Partials       50       50           

Copy link
Member

@puremourning puremourning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

What happens if we enable that flag? Our build is c++17 so abseil should just use that and STFU

Reviewable status: 1 of 2 LGTMs obtained

Copy link
Member

@puremourning puremourning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: 1 of 2 LGTMs obtained (waiting on @bstaletic)

@Jaywalker
Copy link

An eyes-only review shows it has the patch necessary for the OpenBSD/FreeBSD fix. I'll do full build of it on my OpenBSD machine in a little bit and confirm it works, but I fully expect it will!

The update to the latest LTS fixes compilation on some BSD systems.

The new option before making abseil available has to do with
dependencies propagating their needs for C++ standard up to the projects
that depend on them. If a library needs C++14, then the application
depending on that library needs at least C++14, but can opt for newer
standards too.
Copy link
Collaborator Author

@bstaletic bstaletic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if we enable that flag? Our build is c++17 so abseil should just use that and STFU

Tried it, it's fine. In general, a dependency saying "needs C++14" means "needs C++14 or newer". Plus abseil knows about C++17 and switches to it after turning the option on.

-- Performing Test ABSL_INTERNAL_AT_LEAST_CXX17
-- Performing Test ABSL_INTERNAL_AT_LEAST_CXX17 - Success

Reviewable status: 0 of 2 LGTMs obtained (and 1 stale) (waiting on @puremourning)

Copy link
Member

@puremourning puremourning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: 1 of 2 LGTMs obtained (waiting on @bstaletic)

@bstaletic bstaletic added the Ship It! Manual override to merge a PR by maintainer label Jan 14, 2024
Copy link
Contributor

mergify bot commented Jan 14, 2024

Thanks for sending a PR!

Copy link
Contributor

mergify bot commented Jan 15, 2024

Thanks for sending a PR!

@mergify mergify bot merged commit 9004fdf into ycm-core:master Jan 15, 2024
14 of 15 checks passed
@bstaletic bstaletic deleted the abseil-update branch January 15, 2024 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ship It! Manual override to merge a PR by maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

OpenBSD Compile Failure on 6.8+
3 participants