Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tool/jt.rb
Original file line number Diff line number Diff line change
@@ -61,14 +61,9 @@ def self.find_graal
end

def self.find_sulong_graal(dir)
jvmci = File.join(dir, '..', 'jvmci')
Dir.entries(jvmci).each do |entry|
child = File.join(jvmci, entry)
if File.directory?(child) && entry.start_with?('jdk')
return File.join(child, 'product', 'bin', 'java')
end
end
raise "couldn't find the Java build in the Sulong repository - you need to check it out and build it"
jvmci = File.expand_path("../jvmci", dir)
Dir["#{jvmci}/jdk*/product/bin/java"].first or
raise "couldn't find the Java build in the Sulong repository - you need to check it out and build it"
end

def self.find_graal_js

0 comments on commit 86777e5

Please sign in to comment.