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
Modify options for darwin platforms #178
Conversation
|
In fact, I'm not sure about the exact reason why Nevertheless, I thought it's a common usecase because rake-compiler-dock provides builds for Linux. |
How about using https://github.com/protocolbuffers/protobuf/blob/v4.0.0-rc2/kokoro/release/ruby/macos/ruby/ruby_build_environment.sh#L27-L50 instead of using raw rake-compiler?
I'm not sure about it's a common use case but |
Yeah, that's what I'm doing now. And it took a while to figure out we need the following additional patch: - 'LDFLAGS=-pipe -s',
+ 'LDFLAGS=-pipe', So I made this PR to share the knowledge with whoever needs it.
I thought rake-compiler-dock shares philosophy with rake-compiler (because they're in the same org), but is it not? |
Philosophy...? If we add support for building different version Rubies for the current platform, we need to redesign and rename the current We can't accept this patch because this approach is too ad-hoc. |
Depends on the answer. It's fine if
I agree that the current use-case is not a cross-compilation. However, I think supporting darwin hosts or darwin targets does sometimes imply cross-compilation because darwin runs on several ISAs.
I'm confused again. Then is there a chance such a change is accepted if |
I'm currently adding support for MacOS to rake-compiler-dock. It mostly works already - I expect to have it ready when ruby-3.0.0 comes out. First I aim to support |
It is known that we need a different set of options for the darwin platforms as seen in:
This patch backports the modifications above, and also fixes #177.