Skip to content

Commit 82b91ec

Browse files
hsbtmatzbot
authored andcommitted
[ruby/rubygems] Also use String#include? for RUBY_PLATFORM
ruby/rubygems@5fd95f38d3
1 parent 0f80d0e commit 82b91ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rubygems/ext/ext_conf_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def self.build(extension, dest_path, results, args = [], lib_dir = nil, extensio
4040
end
4141

4242
ENV["DESTDIR"] = nil
43-
unless RUBY_PLATFORM =~ /mswin/ && RbConfig::CONFIG["configure_args"]&.include?("nmake")
43+
unless RUBY_PLATFORM.include?("mswin") && RbConfig::CONFIG["configure_args"]&.include?("nmake")
4444
ENV["MAKEFLAGS"] ||= "-j#{Etc.nprocessors + 1}"
4545
end
4646

0 commit comments

Comments
 (0)