Skip to content
Snippets Groups Projects
Commit 85661799 authored by Danilo Ansaloni's avatar Danilo Ansaloni Committed by Gilles Duboscq
Browse files

half-backed

parent 27a202c5
No related branches found
No related tags found
No related merge requests found
......@@ -204,8 +204,8 @@ def mx_post_parse_cmd_line(opts):
if not mx.distribution('FASTR_RELEASE{}'.format(val), fatalIfMissing=False):
mx.instantiateDistribution('FASTR_RELEASE<rffi>', dict(rffi=val))
if not val and os.environ.has_key('FASTR_RELEASE') and not mx.distribution('fastr:FASTR_GRAALVM_SUPPORT', fatalIfMissing=False):
mx.instantiateDistribution('fastr:FASTR_GRAALVM_SUPPORT<rffi>', dict(rffi=''))
if not val and os.environ.has_key('FASTR_RELEASE'):
_instantiate_graalvm_support_dist()
for dist in mx_fastr._fastr_suite.dists:
if isinstance(dist, mx.JARDistribution):
......@@ -216,8 +216,8 @@ def _instantiate_graalvm_support_dist():
mx.abort('Cannot instantiate the GraalVM support distribution when \'FASTR_RFFI\' is set. Found: \'{}\''.format(os.environ.has_key('FASTR_RFFI')))
if not os.environ.has_key('FASTR_RELEASE'):
mx.abort('Cannot instantiate the GraalVM support distribution when \'FASTR_RELEASE\' is not set.')
if not mx.distribution('FASTR_RELEASE', fatalIfMissing=False):
mx.instantiateDistribution('fastr:FASTR_RELEASE<rffi>', dict(rffi=''))
if not mx.distribution('FASTR_GRAALVM_RELEASE', fatalIfMissing=False):
mx.instantiateDistribution('fastr:FASTR_GRAALVM_RELEASE<rffi>', dict(rffi='', os=mx.get_os(), arch=mx.get_arch()))
if not mx.distribution('fastr:FASTR_GRAALVM_SUPPORT', fatalIfMissing=False):
mx.instantiateDistribution('fastr:FASTR_GRAALVM_SUPPORT<rffi>', dict(rffi=''))
......
......@@ -463,6 +463,21 @@ suite = {
},
},
"FASTR_GRAALVM_RELEASE<rffi>": {
"native" : True,
"platformDependent" : True,
"relpath" : True,
"description" : "a binary release of FastR",
"dependencies" : ["com.oracle.truffle.r.release"],
"os_arch" : {
"<others>" : {
"<others>" : {
"path" : "mxbuild/dists/<os>/<arch>/<rffi>/fastr-graalvm-release.tar.gz",
},
},
},
},
"FASTR_GRAALVM_SUPPORT<rffi>" : {
"native" : True,
"platformDependent" : True,
......@@ -471,7 +486,7 @@ suite = {
"./" : [
{
"source_type" : "extracted-dependency",
"dependency" : "FASTR_RELEASE<rffi>",
"dependency" : "FASTR_GRAALVM_RELEASE<rffi>",
"path" : "*",
"exclude" : [
"COPYRIGHT",
......@@ -484,7 +499,7 @@ suite = {
},
{
"source_type" : "extracted-dependency",
"dependency" : "FASTR_RELEASE<rffi>",
"dependency" : "FASTR_GRAALVM_RELEASE<rffi>",
"path" : "bin/fastr_jars/*",
"exclude" : [
"bin/fastr_jars/fastr.jar",
......@@ -494,9 +509,9 @@ suite = {
},
"dependency:fastr:GNUR",
],
"COPYRIGHT_FASTR" : "extracted-dependency:fastr:FASTR_RELEASE<rffi>/COPYRIGHT",
"LICENSE_FASTR" : "extracted-dependency:fastr:FASTR_RELEASE<rffi>/LICENSE",
"README_FASTR" : "extracted-dependency:fastr:FASTR_RELEASE<rffi>/README.md",
"COPYRIGHT_FASTR" : "extracted-dependency:fastr:FASTR_GRAALVM_RELEASE<rffi>/COPYRIGHT",
"LICENSE_FASTR" : "extracted-dependency:fastr:FASTR_GRAALVM_RELEASE<rffi>/LICENSE",
"README_FASTR" : "extracted-dependency:fastr:FASTR_GRAALVM_RELEASE<rffi>/README.md",
"bin/Rscript" : "file:com.oracle.truffle.r.release/src/Rscript_legacy",
"bin/exec/R" : "file:com.oracle.truffle.r.release/src/R_legacy",
"legacy/" : "dependency:fastr:FASTR_LEGACY_LAUNCHER",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment