Skip to content

Commit 3429004

Browse files
committed
Fixup with mswin and nmake build for -j flag
1 parent a9d2a46 commit 3429004

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 RbConfig::CONFIG["MAKE"]&.include?("nmake")
43+
unless RUBY_PLATFORM =~ /mswin/ && RbConfig::CONFIG["configure_args"]&.include?("nmake")
4444
ENV["MAKEFLAGS"] ||= "-j#{Etc.nprocessors + 1}"
4545
end
4646

0 commit comments

Comments
 (0)