Skip to content

Commit

Permalink
Merge pull request #1155 from flavorjones/flavorjones-fix-gem-git-sou…
Browse files Browse the repository at this point in the history
…rce-usage

extconf.rb: avoid invoking "rake" to generate templates
  • Loading branch information
eregon authored Jul 19, 2023
2 parents 728dd07 + 37c5335 commit 7fa73ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ext/yarp/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,13 @@ 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
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("autoconf")
Rake.sh("autoheader")
Rake.sh("rake", "templates")
Rake.sh("templates/template.rb")
end
Rake.sh("sh", "configure") # explicit "sh" for Windows where shebangs are not supported
Rake.sh("make", target)
Expand Down

0 comments on commit 7fa73ba

Please sign in to comment.