Skip to content

Commit

Permalink
Remove temporary dynamic injection of Ruby distributions
Browse files Browse the repository at this point in the history
  • Loading branch information
pitr-ch committed Apr 10, 2018
1 parent 3b585c2 commit 7a2c1f0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions substratevm/mx.substratevm/mx_substratevm.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def native_image_option_properties(option_kind, option_flag, native_image_root):
flag_suitename_map = collections.OrderedDict([
('llvm', ('sulong', ['SULONG', 'SULONG_LAUNCHER'], ['SULONG_LIBS', 'SULONG_DOC'])),
('js', ('graal-js', ['GRAALJS', 'TREGEX', 'GRAALJS_LAUNCHER', 'ICU4J'], ['ICU4J-DIST'], 'js')),
('ruby', ('truffleruby', ['TRUFFLERUBY', 'TRUFFLERUBY-LAUNCHER'], ['TRUFFLERUBY-ZIP'])),
('ruby', ('truffleruby', ['TRUFFLERUBY', 'TRUFFLERUBY-LAUNCHER', 'TRUFFLERUBY-SHARED', 'TRUFFLERUBY-ANNOTATIONS'], ['TRUFFLERUBY-ZIP'])),
('python', ('graalpython', ['GRAALPYTHON', 'GRAALPYTHON-LAUNCHER', 'GRAALPYTHON-ENV'], ['GRAALPYTHON-ZIP']))
])

Expand Down Expand Up @@ -480,13 +480,7 @@ def truffle_language_ensure(language_flag, version=None, native_image_root=None,
mx.abort('Language subdir \'' + language_flag + '\' should already exist with extract=False')
return language_suite

# Temporary inject ['TRUFFLERUBY-SHARED', 'TRUFFLERUBY-ANNOTATIONS'] Ruby dependencies dynamically
# until the change is merged in TruffleRuby repository
extra_ruby_dep = (['TRUFFLERUBY-SHARED', 'TRUFFLERUBY-ANNOTATIONS']
if language_flag == 'ruby' and mx.distribution('TRUFFLERUBY-SHARED', False)
else [])

language_suite_depnames = language_entry[1] + extra_ruby_dep
language_suite_depnames = language_entry[1]
language_deps = language_suite.dists + language_suite.libs
language_deps = [dep for dep in language_deps if dep.name in language_suite_depnames]
native_image_layout(language_deps, language_dir, native_image_root)
Expand Down

0 comments on commit 7a2c1f0

Please sign in to comment.