From 2eede7b1c4bf2cf7ff37ed71bea076d2db5eae0d Mon Sep 17 00:00:00 2001 From: Asherah Connor Date: Thu, 27 Jun 2024 19:45:59 +0300 Subject: [PATCH] cxxrtl: log runtime. --- niar/cxxrtl.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/niar/cxxrtl.py b/niar/cxxrtl.py index d7d5825..566b3c3 100644 --- a/niar/cxxrtl.py +++ b/niar/cxxrtl.py @@ -203,6 +203,7 @@ def main(np: Project, args): exe_o_path = np.path.build(subdir, np.name) cc_o_paths = [o_path for (o_path, _) in cc_odep_paths.values()] if platform.uses_zig: + # Note that we don't clear zig's cache on args.force. cmd = [ "zig", "build", @@ -240,7 +241,8 @@ def main(np: Project, args): cmd = [exe_o_path] if 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):