8000 Add an option to use system protobuf. by bertptrs · Pull Request #152 · google/bloaty · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add an option to use system protobuf. #152

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

Closed
wants to merge 2 commits into from
Closed

Add an option to use system protobuf. #152

wants to merge 2 commits into from

Conversation

bertptrs
Copy link
@bertptrs bertptrs commented Dec 6, 2018

As stated in #142, it would be nice to have an option to use system libraries rather than compiling everything for this package alone. This patch implements just that.

For this to work properly, liblibbloaty can no longer be a static object since it may have to depend on the shared libprotobuf instance. I hope this is not too big of an issue.

On my laptop, compilation times are pretty much halved, as is the binary size.

This cuts down the compilation time significantly, and almost cuts the
binary size in half. However, for this to work, libbloaty must be a
shared object rather than a static one.

I implemented just that and added it to the installation.
@bertptrs
Copy link
Author
bertptrs commented Dec 6, 2018

It now no longer creates a shared library by default, since apparantly Apple doesn't like mixing shared and static libraries.

@haberman
Copy link
Member
haberman commented Mar 4, 2019

Thanks for the pull request and sorry for the delay. I ended up merging #155 which is a similar idea but larger scope.

@haberman haberman closed this Mar 4, 2019
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.

2 participants
0