-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
libbacktrace: fix build on Windows + resolve build requires conflicts #5575
libbacktrace: fix build on Windows + resolve build requires conflicts #5575
Conversation
This comment has been minimized.
This comment has been minimized.
I've also tried to build libbacktrace with Visual Studio. After fighting with a build context and autotools parameters, I was able to pass configure step but compilation fails due to pointer arithmetic on void *:
https://github.com/ianlancetaylor/libbacktrace/blob/dedbe13fda00253fe5d4f2fb812c909729ed5937/pecoff.c#L651 |
I have a patch to build libbacktrace with Visual Studio, but I don't know if it makes sense when unwind is not available at build time. |
it's worth noting that generated lib is quite limited in this case: projects calling backtrace_full and backtrace_simple functions will hit an error_callback with "no stack trace because unwind library not available"
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@@ -0,0 +1,54 @@ | |||
--- a/allocfail.c |
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.
Do you intend to upstream this patch?
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.
Not sure. I don't know if it really makes sense to support Visual Studio. I didn't fix all the files actually, only the ones built when libunwind is not found.
All green in build 6 (
|
…quires conflicts * fix build with MinGW on Windows * no os.rename * clarify invalid configuration message for Visual Studio * allow to build static lib with Visual Studio it's worth noting that generated lib is quite limited in this case: projects calling backtrace_full and backtrace_simple functions will hit an error_callback with "no stack trace because unwind library not available" * add -FS for Visual Studio
Specify library name and version: lib/1.0
This is also a good place to share with all of us why you are submitting this PR (specially if it is a new addition to ConanCenter): is it a dependency of other libraries you want to package? Are you the author of the library? Thanks!
conan-center hook activated.