Esempio n. 1
0
        'bin/bundler',
        'bin/gem',
        'bin/irb',
        'bin/rake',
        'bin/rdoc',
        'bin/ri',
    ],
    launcher_configs=[
        mx_sdk.LanguageLauncherConfig(
            destination='bin/<exe:truffleruby>',
            jar_distributions=['truffleruby:TRUFFLERUBY-LAUNCHER'],
            main_class='org.truffleruby.launcher.RubyLauncher',
            build_args=[
                '-H:+DumpThreadStacksOnSignal',
                '-H:+DetectUserDirectoriesInImageHeap',
                '-H:+TruffleCheckBlackListedMethods',
            ],
            language='ruby',
            links=['bin/<exe:ruby>'],
            option_vars=[
                'RUBYOPT',
                'TRUFFLERUBYOPT'
            ]
        )
    ],
    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:
Esempio n. 2
0
        name='Sulong',
        short_name='slg',
        dir_name='llvm',
        license_files=[],
        third_party_license_files=[],
        dependencies=['Truffle', 'Truffle NFI', 'LLVM.org toolchain'],
        truffle_jars=['sulong:SULONG', 'sulong:SULONG_API'],
        support_distributions=[
            'sulong:SULONG_HOME',
            'sulong:SULONG_GRAALVM_DOCS',
        ],
        launcher_configs=[
            mx_sdk.LanguageLauncherConfig(
                destination='bin/<exe:lli>',
                jar_distributions=['sulong:SULONG_LAUNCHER'],
                main_class='com.oracle.truffle.llvm.launcher.LLVMLauncher',
                build_args=[],
                language='llvm',
            ),
        ] + _suite.toolchain.get_launcher_configs()))

mx_sdk.register_graalvm_component(
    mx_sdk.GraalVmJreComponent(
        suite=_suite,
        name='LLVM.org toolchain',
        short_name='llp',
        installable=True,
        installable_id='llvm-toolchain',
        dir_name='llvm',
        license_files=[],
        third_party_license_files=['3rd_party_license_llvm-toolchain.txt'],
Esempio n. 3
0
        truffle_jars=[
            'graal-js:GRAALJS',
            'graal-js:ICU4J',
            'graal-js:ASM-6.2',
            'graal-js:ASM_TREE-6.2',
            'graal-js:ASM_ANALYSIS-6.2',
            'graal-js:ASM_COMMONS-6.2',
            'graal-js:ASM_UTIL-6.2',
        ],
        support_distributions=[
            'graal-js:GRAALJS_GRAALVM_SUPPORT', 'graal-js:ICU4J-DIST'
        ],
        launcher_configs=[
            mx_sdk.LanguageLauncherConfig(
                destination='bin/<exe:js>',
                jar_distributions=['graal-js:GRAALJS_LAUNCHER'],
                main_class='com.oracle.truffle.js.shell.JSLauncher',
                build_args=['--language:js'])
        ],
        boot_jars=['graal-js:GRAALJS_SCRIPTENGINE']))

mx.update_commands(
    _suite, {
        'deploy-binary-if-master': [deploy_binary_if_master, ''],
        'js': [js, '[JS args|VM options]'],
        'nashorn': [nashorn, '[JS args|VM options]'],
        'test262': [test262, ''],
        'testnashorn': [testnashorn, ''],
        'testv8': [testv8, ''],
        'testinstrumentation': [testinstrumentation, ''],
        'unpackIcuData': [unpackIcuData, ''],
Esempio n. 4
0
        short_name='pyn',
        dir_name='python',
        license_files=['LICENSE_GRAALPYTHON'],
        third_party_license_files=['3rd_party_licenses_graalpython.txt'],
        truffle_jars=[
            'graalpython:GRAALPYTHON',
        ],
        support_distributions=[
            'graalpython:GRAALPYTHON_GRAALVM_SUPPORT',
            'graalpython:GRAALPYTHON_GRAALVM_DOCS',
        ],
        launcher_configs=[
            mx_sdk.LanguageLauncherConfig(
                destination='bin/<exe:graalpython>',
                jar_distributions=['graalpython:GRAALPYTHON-LAUNCHER'],
                main_class='com.oracle.graal.python.shell.GraalPythonMain',
                build_args=[
                    '--language:python',
                    '--language:llvm',
                ])
        ],
    ))

# ----------------------------------------------------------------------------------------------------------------------
#
# set our GRAAL_PYTHONHOME if not already set
#
# ----------------------------------------------------------------------------------------------------------------------
if not os.getenv("GRAAL_PYTHONHOME"):
    home = os.path.join(_suite.dir, "graalpython")
    if not os.path.exists(home):
        home = [
Esempio n. 5
0
    ],
    provided_executables=[
        'bin/bundle',
        'bin/bundler',
        'bin/gem',
        'bin/irb',
        'bin/rake',
        'bin/rdoc',
        'bin/ri',
    ],
    launcher_configs=[
        mx_sdk.LanguageLauncherConfig(
            destination='bin/<exe:truffleruby>',
            jar_distributions=['truffleruby:TRUFFLERUBY-LAUNCHER'],
            main_class='org.truffleruby.launcher.RubyLauncher',
            build_args=[
                '--language:llvm',
            ],
            language='ruby',
            links=['bin/<exe:ruby>'],
        )
    ],
    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_home}/jre/languages/ruby/lib/truffle/post_install_hook.sh""",
))
Esempio n. 6
0
        'graal-js:GRAALJS',
        'graal-js:ICU4J',
        'graal-js:ASM-7.1',
        'graal-js:ASM_TREE-7.1',
        'graal-js:ASM_ANALYSIS-7.1',
        'graal-js:ASM_COMMONS-7.1',
        'graal-js:ASM_UTIL-7.1',
    ],
    support_distributions=[
        'graal-js:GRAALJS_GRAALVM_SUPPORT',
    ],
    launcher_configs=[
        mx_sdk.LanguageLauncherConfig(
            destination='bin/<exe:js>',
            jar_distributions=['graal-js:GRAALJS_LAUNCHER'],
            main_class='com.oracle.truffle.js.shell.JSLauncher',
            build_args=['-H:+TruffleCheckBlackListedMethods'],
            language='js',
        )
    ],
    boot_jars=['graal-js:GRAALJS_SCRIPTENGINE'],
))

mx.update_commands(_suite, {
    'deploy-binary-if-master' : [deploy_binary_if_master, ''],
    'js' : [js, '[JS args|VM options]'],
    'nashorn' : [nashorn, '[JS args|VM options]'],
    'test262': [test262, ''],
    'testnashorn': [testnashorn, ''],
    'testv8': [testv8, ''],
})
Esempio n. 7
0
        license_files=[],  # already included in `TRUFFLESQUEAK_GRAALVM_SUPPORT`.
        third_party_license_files=[],
        truffle_jars=[
            'trufflesqueak:TRUFFLESQUEAK',
            'trufflesqueak:TRUFFLESQUEAK_SHARED',
        ],
        support_distributions=[
            'trufflesqueak:TRUFFLESQUEAK_GRAALVM_SUPPORT',
        ],
        launcher_configs=[
            mx_sdk.LanguageLauncherConfig(
                language=LANGUAGE_ID,
                destination='bin/<exe:trufflesqueak>',
                jar_distributions=['trufflesqueak:TRUFFLESQUEAK_LAUNCHER'],
                main_class='%s.launcher.TruffleSqueakLauncher' % PACKAGE_NAME,
                extra_jvm_args=BASE_VM_ARGS,
                build_args=[
                    # '--pgo-instrument',  # (uncomment to enable profiling)
                    # '--pgo',  # (uncomment to recompile with profiling info)
                ],
            )
        ],
        post_install_msg=None,
    ))

mx.update_commands(
    _suite, {
        'squeak': [_squeak, '[options]'],
        'squeak-gvm': [_squeak_graalvm_launcher, '[options]'],
    })
Esempio n. 8
0
 license_files=['LICENSE_FASTR'],
 third_party_license_files=['3rd_party_licenses_fastr.txt'],
 dependencies=['Truffle', 'LLVM Runtime Native', 'LLVM.org toolchain'],
 truffle_jars=['fastr:FASTR'],
 support_distributions=['fastr:FASTR_GRAALVM_SUPPORT'],
 provided_executables=[
     'bin/Rscript',
     'bin/R',
 ],
 include_in_polyglot=False,
 launcher_configs=[
     mx_sdk.LanguageLauncherConfig(
         destination='bin/RMain',
         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" +
 "FastR should work out of the box on most Linux distributions and recent MacOS versions. "
 +
 "Run the following script to check FastR requirements and create a personal R packages library directory: \n"
 + "    ${graalvm_languages_dir}/R/bin/configure_fastr\n\n" +
 "The R component comes without native image by default. If you wish to build the native image, "
 +
 "which provides faster startup, but slightly slower peak performance, then run the following:\n"
 + "    gu rebuild-images R\n\n" +
Esempio n. 9
0
        dir_name='amd64',
        license_files=[],
        third_party_license_files=[],
        truffle_jars=[
            'trufflex86:VM', 'trufflex86:VM_MEMORY_SVM', 'trufflex86:CORE',
            'trufflex86:POSIX'
        ],
        support_distributions=['trufflex86:VMX86_GRAALVM_SUPPORT'],
        polyglot_lib_build_args=[
            '-H:CLibraryPath=<path:VMX86_GRAALVM_SUPPORT>/clibraries/<os>-<arch>'
        ],
        launcher_configs=[
            mx_sdk.LanguageLauncherConfig(
                destination='bin/<exe:vmx86>',
                jar_distributions=['trufflex86:VMX86_LAUNCHER'],
                main_class='org.graalvm.vm.x86.launcher.AMD64Launcher',
                build_args=[
                    '-H:CLibraryPath=<path:VMX86_GRAALVM_SUPPORT>/clibraries/<os>-<arch>'
                ],
                language='amd64')
        ],
    ))

mx.update_commands(
    _suite, {
        'vmx86': [runAMD64, ''],
        'trcview': [runTrcview, ''],
        'trcdump': [runTrcdump, ''],
        'trchk': [runTrchk, '']
    })