示例#1
0
def _espresso_command(launcher, args):
    import mx_sdk_vm_impl
    bin_dir = join(mx_sdk_vm_impl.graalvm_home(fatalIfMissing=True), 'bin')
    exe = join(bin_dir, mx.exe_suffix(launcher))
    if not os.path.exists(exe):
        exe = join(bin_dir, mx.cmd_suffix(launcher))
    return [exe] + args
示例#2
0
文件: mx_brainfck.py 项目: mukel/bf
def _brainfck_launcher_command(args):
    """Brainf*ck launcher embedded in GraalVM + arguments"""
    import mx_sdk_vm_impl
    return [
        os.path.join(mx_sdk_vm_impl.graalvm_home(fatalIfMissing=True), 'bin',
                     mx.cmd_suffix('bf'))
    ] + args
示例#3
0
def _espresso_java_command(args):
    """Java launcher using libespresso in GraalVM + arguments"""
    import mx_sdk_vm_impl
    bin_dir = os.path.join(mx_sdk_vm_impl.graalvm_home(fatalIfMissing=True),
                           'bin')
    exe = os.path.join(bin_dir, mx.exe_suffix('java'))
    if not os.path.exists(exe):
        exe = os.path.join(bin_dir, mx.cmd_suffix('java'))
    return [exe, '-truffle'] + args
示例#4
0
def _espresso_launcher_command(args):
    """Espresso launcher embedded in GraalVM + arguments"""
    import mx_sdk_vm_impl
    bin_dir = os.path.join(mx_sdk_vm_impl.graalvm_home(fatalIfMissing=True),
                           'bin')
    exe = os.path.join(bin_dir, mx.exe_suffix('espresso'))
    if not os.path.exists(exe):
        exe = os.path.join(bin_dir, mx.cmd_suffix('espresso'))
    return [exe] + args