Skip to content

Commit

Permalink
Merge pull request #1150 from flavorjones/flavorjones-support-gem-git…
Browse files Browse the repository at this point in the history
…-source

Allow the gem to be used from a Gemfile "git:" source
  • Loading branch information
jemmaissroff authored Jul 19, 2023
2 parents 29086ab + 21fcaa4 commit a5fa477
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ext/yarp/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,16 @@ def build_static_rubyparser
end

def build_target_rubyparser(target)
# explicit "sh" is used for Windows where shebangs are not supported
Dir.chdir(root_dir) do
Rake.sh("sh configure") # explicit "sh" for Windows where shebangs are not supported
if !File.exist?("configure") && Dir.exist?(".git")
# this block only exists to support building the gem from a "git" source,
# normally we package up the configure and other files in the gem itself
Rake.sh("sh", "autoconf")
Rake.sh("sh", "autoheader")
Rake.sh("rake","templates")
end
Rake.sh("sh", "configure")
Rake.sh("make", target)
end
end
Expand Down

0 comments on commit a5fa477

Please sign in to comment.