Commit 116dbc81 authored by Stefan Behnel's avatar Stefan Behnel

cythonrun: fix rerunning with existing exe file

parent 0a0bff28
......@@ -104,11 +104,11 @@ def build(input_file, compiler_args=(), force=False):
if (not force and os.path.exists(exe_file) and os.path.exists(input_file)
and os.path.getmtime(input_file) <= os.path.getmtime(exe_file)):
_debug("File is up to date, not regenerating %s", exe_file)
return
return exe_file
cycompile(input_file, compiler_args)
ccompile(basename)
clink(basename)
return basename + EXE_EXT
return exe_file
def build_and_run(args):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment