Skip to content

Commit

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

def self.find_sulong_graal(dir)
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"
searches = [
"#{dir}/../jvmci/jdk*/product/bin/java",
"#{dir}/../graal-core/mx.imports/binary/jvmci/jdk*/product/bin/java"
]

searches.each do |search|
java = Dir[search].first
return java if java
end
end

def self.find_graal_js

0 comments on commit e18bcc0

Please sign in to comment.