Skip to content

Commit c0dfdd4

Browse files
committed
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.
1 parent 7ae3f03 commit c0dfdd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/prism/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
def generate_templates
3838
Dir.chdir(File.expand_path("../..", __dir__)) do
3939
if !File.exist?("include/prism/ast.h") && Dir.exist?(".git")
40-
system("templates/template.rb", exception: true)
40+
system(RbConfig.ruby, "templates/template.rb", exception: true)
4141
end
4242
end
4343
end

0 commit comments

Comments
 (0)