Beispiel #1
0
            'bin/gem',
            'bin/irb',
            'bin/racc',
            'bin/rake',
            'bin/rbs',
            'bin/rdoc',
            'bin/ri',
            'bin/typeprof',
        ],
        library_configs=[
            mx_sdk_vm.LanguageLibraryConfig(
                destination='lib/<lib:rubyvm>',
                launchers=['bin/<exe:ruby>', 'bin/<exe:truffleruby>'],
                jar_distributions=['truffleruby:TRUFFLERUBY-LAUNCHER'],
                main_class='org.truffleruby.launcher.RubyLauncher',
                build_args=[
                    '-H:+DumpThreadStacksOnSignal',
                    '-H:+DetectUserDirectoriesInImageHeap',
                    '-H:+TruffleCheckBlockListMethods'
                ],
                language='ruby',
                option_vars=['RUBYOPT', 'TRUFFLERUBYOPT'])
        ],
        stability="experimental",
        post_install_msg="""
IMPORTANT NOTE:
---------------
The Ruby openssl C extension needs to be recompiled on your system to work with the installed libssl.
First, make sure TruffleRuby's dependencies are installed, which are described at:
  https://github.com/oracle/truffleruby/blob/master/README.md#dependencies
Then run the following command:
        ${graalvm_languages_dir}/ruby/lib/truffle/post_install_hook.sh""",
Beispiel #2
0

# REGISTER MX GATE RUNNER
#########################
add_gate_runner(_suite, _espresso_gate_runner)

if mx.is_windows():
    lib_javavm_cp = '%GRAALVM_HOME%\\lib\\graalvm\\lib-javavm.jar'
else:
    lib_javavm_cp = '${GRAALVM_HOME}/lib/graalvm/lib-javavm.jar'

espresso_library_config = mx_sdk_vm.LanguageLibraryConfig(
    language='java',
    jar_distributions=['espresso:LIB_JAVAVM'],
    build_args=[
        '-H:-JNIExportSymbols',
        '-R:+EnableSignalHandling',
        '-R:+InstallSegfaultHandler',
        '--features=com.oracle.truffle.espresso.ref.FinalizationFeature',
    ],
)

if mx_sdk_vm.base_jdk_version() not in (11, 17):
    _espresso_stability = "experimental"
elif mx.get_os() != "linux" or mx.get_arch() != "amd64":
    _espresso_stability = "experimental"
else:
    _espresso_stability = "supported"

mx_sdk_vm.register_graalvm_component(
    mx_sdk_vm.GraalVmLanguage(
        suite=_suite,