Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tool/jt.rb
Original file line number Diff line number Diff line change
@@ -698,7 +698,7 @@ def command_p(*args)
e 'p begin', *args, 'end'
end

def build_ruby_su
def build_ruby_su(cext_dir)
abort "You need to set SULONG_HOME" unless SULONG_HOME

# Ensure ruby.su is up-to-date
@@ -714,7 +714,7 @@ def build_ruby_su
private :build_ruby_su

def cextc(cext_dir, *clang_opts)
build_ruby_su
build_ruby_su(cext_dir)

config_file = File.join(cext_dir, CEXTC_CONF_FILE)
unless File.exist?(config_file)
@@ -774,7 +774,7 @@ def cextc(cext_dir, *clang_opts)
end

def cextc_extconf(cext_dir, *clang_opts)
build_ruby_su
build_ruby_su(cext_dir)

gem_name = File.basename(cext_dir)
gem_dir = Dir.glob(ENV['GEM_HOME'] + "/gems/#{gem_name}*/")[0] + "ext/#{gem_name}/"

0 comments on commit c1340f2

Please sign in to comment.