Skip to content

Commit

Permalink
[Truffle] Add missing local var to build_ruby_su method
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Fish committed Nov 15, 2016
1 parent a9b2e54 commit c1340f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tool/jt.rb
Expand Up @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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}/"
Expand Down

0 comments on commit c1340f2

Please sign in to comment.