From c0dfdd4f7a966a13e37c0a641137c8ee818726bb Mon Sep 17 00:00:00 2001 From: Edouard CHIN Date: Wed, 22 Oct 2025 15:51:51 +0200 Subject: [PATCH] Allow compiling from source on windows: - I'm trying to compile Prism from source on a Windows machine but it unforunately fails when trying to render the template due to the shebang that doesn't exist on Windows. I modified the `system` call to call ruby with its full path directly instead. --- ext/prism/extconf.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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