-
Notifications
You must be signed in to change notification settings - Fork 440
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
Fix issues #740 and #741 #742
Conversation
|
Codecov Report
@@ Coverage Diff @@
## main #742 +/- ##
=======================================
Coverage 94.75% 94.75%
=======================================
Files 217 217
Lines 9919 9919
=======================================
Hits 9399 9399
Misses 520 520 |
4d828f8
to
d2131aa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@owent - can you rebase this so that we can merge it |
Done. |
@owent - Can you please rebased once again. There was one unresolved comment so couldn't merge last time. Looks good to merge now. |
Signed-off-by: owent <admin@owent.net>
Signed-off-by: owent <admin@owent.net>
I am a bit confused by this change. What does STL has to do with GSL? What if someone wants STL but doesn't want GSL? I feel this trickled from msvc environment. How about having this behavior for windows only at least? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit confused by this change. What does STL has to do with GSL? What if someone wants STL but doesn't want GSL?
I feel this trickled from msvc environment. How about having this behavior for windows only at least?
I'm not familiar with GSL. It seems to import some experimental libraries of STL, and alias to the implement if STL when STL support them. And it support all of MSVC, GCC and Clang, not only for MSVC.
I feel this needs to be a flag. automagically importing a third party library when specifying |
We only use Will wait for @maxgolov to reply, probably |
Agree too. |
That's true indeed. The only official 1-1 conforming implementation of I think we should try to use that one for DLL flavor on Windows, as on Windows we support Visual Studio 2015 Update 2 and above in C++14 mode. And with that one should be able to compile The option (including GSL span) is described in greater level of detail here in this document in our repo here: I have already submitted a change that automagically falls-back to |
Fixes #740 #741
Changes
HAVE_CPP_STDLIB
andHAVE_GSL
intoINTERFACE_COMPILE_DEFINITIONS
ofopentelemetry_api
.protobuf_FOUND
withProtobuf_FOUND
.For significant contributions please make sure you have completed the following items:
CHANGELOG.md
updated for non-trivial changes