-
-
Notifications
You must be signed in to change notification settings - Fork 284
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
An option to use Rubies configured with --mkmf-verbose #505
Comments
It's in the README early on though and easy to understand when you see it downloads a prebuilt Ruby in the actions log:
I will not rebuild all Rubies with this configure flag (it's too much work for too little gain), and we don't support multiple builds of a given Ruby version. And it could be incompatible. I suggest to make it easier to enable this feature at runtime in ruby/ruby, I don't see why it should be a configure-time option. Maybe it should be an environment variable? |
@eregon Thanks for the info!
Yes, it makes sense to me.
I have not noticed the idea to enable this feature at runtime in ruby/ruby until you suggest it. And that makes much more sense. I plan to propose on the Ruby project's ticket and send a pull request to ruby/ruby to add the new feature by adding the
The environment variable may be another way to implement this feature. The |
As a note, the intent of the ruby/ruby@019cbde was to change the default behavior of the |
I see, that's fine, I meant it doesn't need to be a configure-time option, it could be a runtime option. |
Okay. By the way, the simple way to enable verbose at runtime in ruby/ruby was found by setting
Here is a PR ruby/openssl#624 using this technique. I saw the So, I canceled to propose and implement the new class method |
I'd guess |
I see. Do you know which |
I don't, no. It's probably nmake but potentially other |
Publicly available Windows Rubies (RubyInstaller.org) all use gcc/make. Windows mswin builds use nmake. |
Thanks for the info. Eventually I was able to implement the feature |
The feature to print compiler (e.g. gcc, clang) command lines in the build time of the Ruby native extensions is available on Ruby 3.1 or later versions, that is possible by building Ruby with
configure --mkmf-verbose
option.Here is the commit on the ruby/ruby master branch. - ruby/ruby@019cbde
I would like to use the Rubies configured with
--mkmf-verbose
from the GitHub Actions:ruby/setup-ruby
. Because I made this issue of the compiler warnings (-Wundef
) printed in ruby/openssl. And the ruby/openssl's GitHub Actions CI didn't print the compiler warnings when I ran thebundle exec rake compile -- --with-cflags='-Wundef'
on the CI. So, I would like to see the compiler command lines on the GitHub Actions.I don't understand how the ruby/setup-ruby works. But seeing the code, the ruby/setup-ruby is calling https://github.com/rbenv/ruby-build.git? And seeing the https://github.com/rbenv/ruby-build, we can manage the configure options by the
CONFIGURE_OPTS
environment? I am not sure how much hard to implement this, and what are the concerns to add this new feature.Considering the backward compatibility of the ruby/setup-ruby, I would like that the Rubies configured with
--mkmf-verbose
is optional, not a default behavior of the ruby/setup-ruby.What do you think?
In the mean time, as a workaround, I plan to modify the
mkmf.rb
like this to enable the feature in GitHub Actions.The text was updated successfully, but these errors were encountered: