Skip to content

Commit

Permalink
change to graalvm compiler (was interpreter)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazeMCworld committed Feb 6, 2023
1 parent ce247a0 commit 71bbb80
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'fabric-loom' version '1.0-SNAPSHOT'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id "org.graalvm.plugin.compiler" version "0.1.0-alpha2"
}

import net.fabricmc.loom.task.RemapJarTask
Expand All @@ -13,6 +14,10 @@ repositories {
mavenCentral()
}

graal {
version "22.3.0"
}

dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
Expand Down
1 change: 0 additions & 1 deletion src/main/java/de/blazemcworld/jsscripts/Script.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public Script(File file) throws Exception {
ctx = Context.newBuilder()
.allowAllAccess(true)
.logHandler(System.out)
.option("engine.WarnInterpreterOnly", "false")
.build();
Value bindings = ctx.getBindings("js");
bindings.putMember("script", this);
Expand Down

0 comments on commit 71bbb80

Please sign in to comment.