Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@
*/
package org.jruby.truffle.platform;

import com.oracle.truffle.api.TruffleOptions;
import org.jruby.ext.ffi.Platform;
import org.jruby.truffle.RubyContext;
import org.jruby.truffle.platform.darwin.DarwinPlatform;
@@ -18,7 +19,8 @@
public abstract class NativePlatformFactory {

public static NativePlatform createPlatform(RubyContext context) {
if (context.getOptions().PLATFORM_USE_JAVA || (Platform.getPlatform().getOS() == Platform.OS_TYPE.WINDOWS)) {
if (!TruffleOptions.AOT &&
(context.getOptions().PLATFORM_USE_JAVA || (Platform.getPlatform().getOS() == Platform.OS_TYPE.WINDOWS))) {
return new JavaPlatform(context);
}

0 comments on commit 6e929d9

Please sign in to comment.