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

Allow optional stripping of compiled extensions #48

Merged
merged 1 commit into from Dec 31, 2019

Conversation

luislavena
Copy link
Owner

@luislavena luislavena commented Dec 31, 2019

Introduce --strip to perform stripping on compiled extensions (using same command as defined by RbConfig::CONFIG["STRIP"]).

Or using a custom stripping command using --strip-cmd, allowing different executable and flags to be used.

Examples:

$ gem compile oj-3.10.0.gem --strip
Unpacking gem: 'oj-3.10.0' in temporary directory...
Building native extensions. This could take a while...
Stripping symbols from extensions (using 'strip -S -x')...
  Successfully built RubyGem
  Name: oj
  Version: 3.10.0
  File: oj-3.10.0-x86_64-linux.gem
$ gem compile oj-3.10.0.gem --strip-cmd "strip --strip-unneeded"
Unpacking gem: 'oj-3.10.0' in temporary directory...
Building native extensions. This could take a while...
Stripping symbols from extensions (using 'strip --strip-unneeded')...
  Successfully built RubyGem
  Name: oj
  Version: 3.10.0
  File: oj-3.10.0-x86_64-linux.gem

This is not enabled by default.

Closes #40.

Introduce `--strip` to perform stripping on compiled extensions (using
same command as defined by `RbConfig::CONFIG["STRIP"]`).

Or using a custom stripping command using `--strip-cmd`, allowing
different executable and flags to be used.

This is not enabled by default.

Closes #40.
@luislavena luislavena merged commit 4b19790 into master Dec 31, 2019
@luislavena luislavena mentioned this pull request Dec 31, 2019
@luislavena luislavena deleted the feature/strip-extensions branch December 31, 2019 19:08
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.

None yet

1 participant