From 1d13d7dec3667897667d5be5549ead64e5d8b332 Mon Sep 17 00:00:00 2001 From: stepan Date: Thu, 21 Dec 2023 12:09:46 +0100 Subject: [PATCH] Switch to thin launchers, support FastR JVM standalone distribution --- .../com/oracle/truffle/r/launcher/RMain.java | 8 +++-- com.oracle.truffle.r.release/src/R_launcher | 8 +++-- .../src/Rscript_launcher | 9 ++++-- mx.fastr/mx_fastr_dists.py | 30 +++++++------------ mx.fastr/native-image.properties | 2 +- mx.fastr/suite.py | 3 ++ 6 files changed, 32 insertions(+), 28 deletions(-) diff --git a/com.oracle.truffle.r.launcher/src/com/oracle/truffle/r/launcher/RMain.java b/com.oracle.truffle.r.launcher/src/com/oracle/truffle/r/launcher/RMain.java index bd6aaa6cd9..6a9ea48044 100644 --- a/com.oracle.truffle.r.launcher/src/com/oracle/truffle/r/launcher/RMain.java +++ b/com.oracle.truffle.r.launcher/src/com/oracle/truffle/r/launcher/RMain.java @@ -117,8 +117,12 @@ protected List preprocessArguments(List arguments, Map'], jar_distributions=['fastr:FASTR_LAUNCHER'], main_class='com.oracle.truffle.r.launcher.RMain', build_args=[], language='R', - is_main_launcher=False, - default_symlinks=False, - ) + ), ], stability="experimental", post_install_msg="NOTES:\n---------------\n" + diff --git a/mx.fastr/native-image.properties b/mx.fastr/native-image.properties index d65b47b0e3..60a97758a0 100644 --- a/mx.fastr/native-image.properties +++ b/mx.fastr/native-image.properties @@ -1,5 +1,5 @@ # This file contains native-image arguments needed to fastr -# +# TODO: move this into the fastr.jar Requires = language:nfi language:llvm language:antlr4 language:xz diff --git a/mx.fastr/suite.py b/mx.fastr/suite.py index 4a43918c82..7abe1ad6cf 100644 --- a/mx.fastr/suite.py +++ b/mx.fastr/suite.py @@ -489,6 +489,9 @@ "FASTR_LAUNCHER" : { "moduleInfo" : { "name" : "org.graalvm.r.launcher", + "exports" : [ + "com.oracle.truffle.r.launcher to org.graalvm.launcher" + ] }, "useModulePath": True, "description" : "launcher for the GraalVM (at the moment used only when native image is installed)",