From 5fe480dd28cdae653b964952681937a03bb123a7 Mon Sep 17 00:00:00 2001
From: stepan <stepan.sindelar@oracle.com>
Date: Thu, 25 Jan 2018 15:17:57 +0100
Subject: [PATCH] Add configuration for native-image tool

---
 mx.fastr/native-image.properties | 13 +++++++++++++
 mx.fastr/suite.py                |  2 +-
 2 files changed, 14 insertions(+), 1 deletion(-)
 create mode 100644 mx.fastr/native-image.properties

diff --git a/mx.fastr/native-image.properties b/mx.fastr/native-image.properties
new file mode 100644
index 0000000000..bc39dee019
--- /dev/null
+++ b/mx.fastr/native-image.properties
@@ -0,0 +1,13 @@
+# This file contains native-image arguments needed to fastr
+#
+
+ImageName = R
+
+Requires = Tool:nfi
+
+JavaArgs = \
+    -Dfastr.resource.factory.class=com.oracle.truffle.r.nodes.builtin.EagerResourceHandlerFactory \
+    -Dfastr.internal.grid.awt.support=false \
+    -Xmx6G
+
+Args = -H:Class=com.oracle.truffle.r.launcher.RCommand
diff --git a/mx.fastr/suite.py b/mx.fastr/suite.py
index 36c3ba4f59..cb8a789862 100644
--- a/mx.fastr/suite.py
+++ b/mx.fastr/suite.py
@@ -70,7 +70,7 @@ suite = {
       "sha1" : "0baa82bff19059401e90e1b90020beb9c96305d7",
       "maven" : {
         "groupId" : "org.antlr",
-        "artifactId" : "antlr",
+        "artifactId" : "antlr-runtime",
         "version" : "3.5",
       },
     },
-- 
GitLab