diff --git a/ext/prism/extconf.rb b/ext/prism/extconf.rb index 20ba28fe46..ae1691c979 100644 --- a/ext/prism/extconf.rb +++ b/ext/prism/extconf.rb @@ -37,7 +37,7 @@ def generate_templates Dir.chdir(File.expand_path("../..", __dir__)) do if !File.exist?("include/prism/ast.h") && Dir.exist?(".git") - system("templates/template.rb", exception: true) + system(RbConfig.ruby, "templates/template.rb", exception: true) end end end