-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Link compiled protobuf files to protobuf::libprotobuf
#106370
Conversation
This correctly propagates the required compile flags (such as `-DPROTOBUF_USE_DLLS` for shared builds of protobuf). Fixes pytorch#106297
This PR needs a
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
This is still required. Any comments/todos here? |
@soulitzer @malfet this was closed without being addressed but it fixes issues we do have. Can this be reopened and reviewed please? |
@Flamefire without this patch, what are the exact reprocussions? Is it that one cannot use a system protobuf at all? Is there any existing workarounds? (I am trying to understand if I am encountering the same issue. I can help push it forward.) |
Without this patch there could be a system protobuf compiled as a shared library which requires some defines when linking against it such as A workaround would be to exactly know which protobuf will be linked and (finding and) passing all required defines and potentially other flags manually. Not really reliable |
This correctly propagates the required compile flags (such as
-DPROTOBUF_USE_DLLS
for shared builds of protobuf).The manual extraction of the include path and adding that globally is also no longer required as that is part of that targets interface.
Fixes #106297
Fixes #106206