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

Set ext.no_native = true for non mac platform #4553

Merged
merged 1 commit into from
Apr 25, 2018

Conversation

liujisi
Copy link
Contributor

@liujisi liujisi commented Apr 25, 2018

@TeBoring TeBoring self-requested a review April 25, 2018 17:31
# "no_native" can only be set if the RUBY_PLATFORM doing
# cross-compilation is contained in the "ext.cross_platform" array.
ext.no_native = true
end
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this also needs

ext.cross_compiling do |spec|
  s.files       = Dir.glob('lib/**/*.rb')
end

to get keep the .rb files in the binary packages, without the .c files.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scratch my above comment. That is optional, and is only useful if you want to also want to remove source code from the binary packages.

@liujisi liujisi merged commit a21f225 into protocolbuffers:master Apr 25, 2018
@xfxyjwf xfxyjwf added the ruby label Jun 22, 2018
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