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

Enable PROTOBUF_EXPORT/PROTOBUF_USE_DLL on clang/gcc #6535

Merged
merged 1 commit into from
Sep 3, 2019

Conversation

m0hamed
Copy link
Contributor

@m0hamed m0hamed commented Aug 19, 2019

LIBPROTOBUF_EXPORTS currently only works on MSVC, this patch should allow it to work on clang/gcc.

@acozzette
Copy link
Member

@m0hamed Could you merge or rebase with master again to fix the merge conflicts?

@m0hamed
Copy link
Contributor Author

m0hamed commented Aug 28, 2019

rebased onto master

test.patch Outdated Show resolved Hide resolved
@acozzette acozzette merged commit f74b560 into protocolbuffers:master Sep 3, 2019
@haberman
Copy link
Member

haberman commented Sep 12, 2019

Why does this need to be so complicated? The explicit template instantiation macros contain a layer of indirection that is never used (we only ever explicitly instantiate templates with PROTOBUF_EXPORT, never PROTOC_EXPORT).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants