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

[BUILD] Better handling of OPENTELEMETRY_STL_VERSION under Bazel. #2503

Merged
merged 5 commits into from
Jan 30, 2024

Conversation

bcsgh
Copy link
Contributor

@bcsgh bcsgh commented Jan 22, 2024

Fixes #2470 for Bazel.

Changes

Make Bazel build, by default, use the "current" actual C++ version as OPENTELEMETRY_STL_VERSION.

Note that some compilers use some "interesting" values for __cplusplus when asked to compiler for the most recent version they support. This can result in slightly unexpected results, but might actually be a good thing if those values indicate less than perfect support for the version in question and cause a downgrade to a better supported library.

Copy link

codecov bot commented Jan 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@732f0b2). Click here to learn what that means.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2503   +/-   ##
=======================================
  Coverage        ?   87.11%           
=======================================
  Files           ?      200           
  Lines           ?     6109           
  Branches        ?        0           
=======================================
  Hits            ?     5321           
  Misses          ?      788           
  Partials        ?        0           

@bcsgh bcsgh marked this pull request as ready for review January 23, 2024 18:13
@bcsgh bcsgh requested a review from a team January 23, 2024 18:13
Copy link
Member

@esigo esigo left a comment

Choose a reason for hiding this comment

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

LGTM
Thanks for the PR :)

Copy link
Member

@marcalff marcalff left a comment

Choose a reason for hiding this comment

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

Thanks.

@marcalff marcalff merged commit 497eaf4 into open-telemetry:main Jan 30, 2024
48 checks passed
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.

Provide a way to populate OPENTELEMETRY_STL_VERSION from __cplusplus.
4 participants