Skip to content

Commit e32c79a

Browse files
committed
[GR-47035] JT: look at ruby_home/release if no graalvm_home
1 parent 9ba6955 commit e32c79a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tool/jt.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def truffleruby_compiler?
331331
return @truffleruby_compiler = true if truffleruby_native_built?
332332

333333
# Detect if the compiler is present by reading the $graalvm_home/release file
334-
@truffleruby_compiler = File.readlines("#{graalvm_home}/release").grep(/^COMMIT_INFO=/).any? do |line|
334+
@truffleruby_compiler = File.readlines("#{graalvm_home || ruby_home}/release").grep(/^COMMIT_INFO=/).any? do |line|
335335
line.include?('"compiler":') || line.include?("'compiler':")
336336
end
337337
end

0 commit comments

Comments
 (0)