diff --git a/ext/prism/extconf.rb b/ext/prism/extconf.rb index 9283d62b47..fafdd701ba 100644 --- a/ext/prism/extconf.rb +++ b/ext/prism/extconf.rb @@ -50,7 +50,7 @@ def make(env, target) Dir.chdir(File.expand_path("../..", __dir__)) do system( env, - RUBY_PLATFORM.match?(/openbsd|freebsd/) ? "gmake" : "make", + RbConfig::CONFIG['host_os'].match?(/openbsd|freebsd/i) ? "gmake" : "make", target, exception: true )