diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-11-29 10:06:03 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-11-29 02:06:53 +0000 |
| commit | 82b91ec7e55cb5ef4acd61213843614542bea3b3 (patch) | |
| tree | 72fed4103a404c8873d60f7e97c7794ee0a9bba7 | |
| parent | 0f80d0ee05a2cb9daad426a7aa9aad7c4f2c3401 (diff) | |
[ruby/rubygems] Also use String#include? for RUBY_PLATFORM
https://github.com/ruby/rubygems/commit/5fd95f38d3
| -rw-r--r-- | lib/rubygems/ext/ext_conf_builder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/ext/ext_conf_builder.rb b/lib/rubygems/ext/ext_conf_builder.rb index 5bc8b01f3b..81491eac79 100644 --- a/lib/rubygems/ext/ext_conf_builder.rb +++ b/lib/rubygems/ext/ext_conf_builder.rb @@ -40,7 +40,7 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder end ENV["DESTDIR"] = nil - unless RUBY_PLATFORM =~ /mswin/ && RbConfig::CONFIG["configure_args"]&.include?("nmake") + unless RUBY_PLATFORM.include?("mswin") && RbConfig::CONFIG["configure_args"]&.include?("nmake") ENV["MAKEFLAGS"] ||= "-j#{Etc.nprocessors + 1}" end |
