Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@
package org.jruby.truffle.interop;

import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import com.oracle.truffle.api.TruffleOptions;
import com.oracle.truffle.api.object.DynamicObject;
import org.jruby.Ruby;
import org.jruby.runtime.builtin.IRubyObject;
@@ -43,7 +44,7 @@ public String getJRubyHome() {
}

private String findJRubyHome() {
if (System.getenv("JRUBY_HOME") == null && System.getProperty("jruby.home") == null) {
if (!TruffleOptions.AOT && System.getenv("JRUBY_HOME") == null && System.getProperty("jruby.home") == null) {
// Set JRuby home automatically for GraalVM
final CodeSource codeSource = Ruby.class.getProtectionDomain().getCodeSource();
if (codeSource != null) {

0 comments on commit 2b96057

Please sign in to comment.