aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/optional/capi/spec_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/rubyspec/optional/capi/spec_helper.rb')
-rw-r--r--spec/rubyspec/optional/capi/spec_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/rubyspec/optional/capi/spec_helper.rb b/spec/rubyspec/optional/capi/spec_helper.rb
index c250253919..5dbe6bbcac 100644
--- a/spec/rubyspec/optional/capi/spec_helper.rb
+++ b/spec/rubyspec/optional/capi/spec_helper.rb
@@ -55,7 +55,8 @@ def compile_extension(name)
$stderr.puts output if debug
end
- make = RbConfig::CONFIG['host_os'].include?("mswin") ? "nmake" : "make"
+ make = ENV['MAKE']
+ make ||= (RbConfig::CONFIG['host_os'].include?("mswin") ? "nmake" : "make")
ENV.delete "MAKEFLAGS" # Fix make warning when invoked with -j in MRI
# Do not capture stderr as we want to show compiler warnings