Beispiel #1
0
        ]
        for patch in self.subject.patches:
            mx.run(git_apply + [patch], cwd=self.subject.suite.vc_dir)

        self.delegate.logBuild()
        self.delegate.build()

    def clean(self, forBuild=False):
        mx.rmtree(self.subject.out_dir, ignore_errors=True)


mx_sdk.register_graalvm_component(
    mx_sdk.GraalVMSvmMacro(
        suite=_suite,
        name='Truffle',
        short_name='tfl',
        dir_name='truffle',
        license_files=[],
        third_party_license_files=[],
        support_distributions=['truffle:TRUFFLE_GRAALVM_SUPPORT']))

mx_sdk.register_graalvm_component(
    mx_sdk.GraalVmLanguage(
        suite=_suite,
        name='Truffle NFI',
        short_name='nfi',
        dir_name='nfi',
        license_files=[],
        third_party_license_files=[],
        truffle_jars=['truffle:TRUFFLE_NFI'],
        support_distributions=['truffle:TRUFFLE_NFI_GRAALVM_SUPPORT']))
Beispiel #2
0
                     os.path.relpath(self.subject.delegate.dir, self.subject.suite.vc_dir)]
        for patch in self.subject.patches:
            mx.run(git_apply + [patch], cwd=self.subject.suite.vc_dir)

        self.delegate.logBuild()
        self.delegate.build()

    def clean(self, forBuild=False):
        mx.rmtree(self.subject.out_dir, ignore_errors=True)


mx_sdk.register_graalvm_component(mx_sdk.GraalVMSvmMacro(
    suite=_suite,
    name='Truffle',
    short_name='tfl',
    dir_name='truffle',
    license_files=[],
    third_party_license_files=[],
    dependencies=[],
    support_distributions=['truffle:TRUFFLE_GRAALVM_SUPPORT']
))


mx_sdk.register_graalvm_component(mx_sdk.GraalVmLanguage(
    suite=_suite,
    name='Truffle NFI',
    short_name='nfi',
    dir_name='nfi',
    license_files=[],
    third_party_license_files=[],
    dependencies=['Truffle'],
    truffle_jars=['truffle:TRUFFLE_NFI'],
Beispiel #3
0
        "-H:+SpawnIsolates",
    ],
    polyglot_lib_jar_dependencies=[
        "substratevm:POLYGLOT_NATIVE_API",
    ],
    polyglot_lib_build_dependencies=[
        "substratevm:POLYGLOT_NATIVE_API_HEADERS"
    ],
    has_polyglot_lib_entrypoints=True,
))

mx_sdk.register_graalvm_component(mx_sdk.GraalVMSvmMacro(
    suite=suite,
    name='Native Image JUnit',
    short_name='nju',
    dir_name='junit',
    license_files=[],
    third_party_license_files=[],
    builder_jar_distributions=['mx:JUNIT_TOOL', 'mx:JUNIT', 'mx:HAMCREST'],
    support_distributions=['substratevm:NATIVE_IMAGE_JUNIT_SUPPORT'],
))

if os.environ.has_key('LIBGRAAL'):
    mx_sdk.register_graalvm_component(mx_sdk.GraalVmJreComponent(
        suite=suite,
        name='LibGraal',
        short_name='lg',
        dir_name=False,
        license_files=[],
        third_party_license_files=[],
        jar_distributions=[],
        builder_jar_distributions=[],