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
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
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
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