Skip to content

Commit 7bd80e7

Browse files
committed
nmake didn't support -j flag
1 parent 413d15a commit 7bd80e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/rubygems/ext/ext_conf_builder.rb

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

4242
ENV["DESTDIR"] = nil
43-
ENV["MAKEFLAGS"] ||= "-j#{Etc.nprocessors + 1}"
43+
unless RbConfig::CONFIG["MAKE"] =~ /nmake/
44+
ENV["MAKEFLAGS"] ||= "-j#{Etc.nprocessors + 1}"
45+
end
4446

4547
make dest_path, results, extension_dir, tmp_dest_relative, target_rbconfig: target_rbconfig
4648

0 commit comments

Comments
 (0)