INNER CODE UNIT · Python
codegen
faasm/faasm · tasks/codegen.py:31
def codegen(ctx, user, function, clean=False):
"""
Generates machine code for the given function
"""
env = copy(environ)
env.update(
{
"LD_LIBRARY_PATH": "/usr/local/lib/",
}
)
binary = find_codegen_func()
codegen_cmd = [
binary,
user,
"--func {}".format(function),
"--clean" if clean else "",
]