def _do_codegen_user(user, wamr=False): print("Running codegen for user {}".format(user)) binary = find_codegen_func() env = {"WASM_VM": "wamr" if wamr else "wavm"} run("{} {}".format(binary, user), shell=True, env=env, check=True)
def codegen(ctx, user, function, wamr=False): """ Generates machine code for the given function """ env = {"WASM_VM": "wamr" if wamr else "wavm"} binary = find_codegen_func() run("{} {} {}".format(binary, user, function), shell=True, env=env, check=True)
def _do_codegen_user(user): print("Running WAVM codegen for user {}".format(user)) binary = find_codegen_func() env = copy(environ) env.update( { "WASM_VM": "wavm", "LD_LIBRARY_PATH": "/usr/local/lib/", } ) run("{} {}".format(binary, user), shell=True, env=env, check=True)
def codegen(ctx, user, function): """ Generates machine code for the given function """ env = copy(environ) env.update( { "LD_LIBRARY_PATH": "/usr/local/lib/", } ) binary = find_codegen_func() run( "{} {} {}".format(binary, user, function), shell=True, env=env, check=True, )
def _do_codegen_user(user): print("Running codegen for user {}".format(user)) binary = find_codegen_func() check_output("{} {}".format(binary, user), shell=True)
def codegen(ctx, user, function): """ Generates machine code for the given function """ binary = find_codegen_func() check_output("{} {} {}".format(binary, user, function), shell=True)