Skip to content

Update googletest code in third_party#1238

Merged
antoninbas merged 5 commits intop4lang:mainfrom
nibblerenush:gtest-update
Apr 11, 2024
Merged

Update googletest code in third_party#1238
antoninbas merged 5 commits intop4lang:mainfrom
nibblerenush:gtest-update

Conversation

@nibblerenush
Copy link
Copy Markdown
Contributor

@nibblerenush nibblerenush commented Apr 5, 2024

Update googletest code to v1.12.1 version from here.

Copy link
Copy Markdown
Member

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

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

https://github.com/google/googletest/releases/tag/v1.14.0 mentions that GoogleTest requires at least C++14. This project only requires C++11 and builds with -std=c+11. While it seems that CI tests are passing fine, IMO we should still follow one of these 2 approaches:

  1. Update to v1.12.1 instead, as it is the last version to support C++11, but should still be much more recent than what we have today
  2. Update this project (bmv2) to require C++14. Obviously, this is more involved than approach 1. It would require updating documentation, build scripts, and before making that change, we shoudl probably cut one last bmv2 release with "C++11 support".

@nibblerenush
Copy link
Copy Markdown
Contributor Author

nibblerenush commented Apr 10, 2024

  1. Update to v1.12.1 instead, as it is the last version to support C++11, but should still be much more recent than what we have today

I chose this method because I am newbie in open source.

Copy link
Copy Markdown
Member

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

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

LGTM

@antoninbas antoninbas merged commit 5f5818b into p4lang:main Apr 11, 2024
@nibblerenush nibblerenush deleted the gtest-update branch April 11, 2024 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants