Skip to content

Commit 2ed3cf1

Browse files
committed
Merge branch 'topic/disable_jit' into 'master'
Disable Truffle compilation. See merge request eng/libadalang/langkit-query-language!227
2 parents 067cf58 + e596a11 commit 2ed3cf1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lkql_jit/cli/src/main/java/com/adacore/lkql_jit/drivers/GNATCheckWorker.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import org.graalvm.launcher.AbstractLanguageLauncher;
1717
import org.graalvm.options.OptionCategory;
1818
import org.graalvm.polyglot.Context;
19+
import org.graalvm.polyglot.Engine;
1920
import org.graalvm.polyglot.Source;
2021
import org.graalvm.polyglot.Value;
2122
import picocli.CommandLine;
@@ -257,6 +258,12 @@ protected int executeScript(Context.Builder contextBuilder) {
257258
}
258259
contextBuilder.option("lkql.ruleInstances", JsonUtils.serializeInstances(instances));
259260

261+
contextBuilder.engine(
262+
Engine.newBuilder()
263+
.allowExperimentalOptions(true)
264+
.option("engine.Compilation", "false")
265+
.build());
266+
260267
// Create the context and run the script in it
261268
try (Context context = contextBuilder.build()) {
262269
final Source source = Source.newBuilder("lkql", checkerSource, "checker.lkql").build();

0 commit comments

Comments
 (0)