mirror of
https://git.sr.ht/~kivikakk/niar
synced 2024-12-23 04:22:23 +00:00
cxxrtl: log runtime.
This commit is contained in:
parent
f6de8db366
commit
2eede7b1c4
|
@ -203,6 +203,7 @@ def main(np: Project, args):
|
||||||
exe_o_path = np.path.build(subdir, np.name)
|
exe_o_path = np.path.build(subdir, np.name)
|
||||||
cc_o_paths = [o_path for (o_path, _) in cc_odep_paths.values()]
|
cc_o_paths = [o_path for (o_path, _) in cc_odep_paths.values()]
|
||||||
if platform.uses_zig:
|
if platform.uses_zig:
|
||||||
|
# Note that we don't clear zig's cache on args.force.
|
||||||
cmd = [
|
cmd = [
|
||||||
"zig",
|
"zig",
|
||||||
"build",
|
"build",
|
||||||
|
@ -240,7 +241,8 @@ def main(np: Project, args):
|
||||||
cmd = [exe_o_path]
|
cmd = [exe_o_path]
|
||||||
if args.vcd:
|
if args.vcd:
|
||||||
cmd += ["--vcd", args.vcd]
|
cmd += ["--vcd", args.vcd]
|
||||||
cr.run_cmd(cmd, step="run")
|
with logtime(logging.DEBUG, "run"):
|
||||||
|
cr.run_cmd(cmd, step="run")
|
||||||
|
|
||||||
|
|
||||||
def _make_absolute(path):
|
def _make_absolute(path):
|
||||||
|
|
Loading…
Reference in a new issue