Commit cd5f4c7
committed
fix: address gemini-code-assist nits on The-OpenROAD-Project#4229
Two follow-ups from gemini-code-assist review of PR The-OpenROAD-Project#4229; the
other five nits no longer apply (three targeted bazel/yosys-check.sh
and bazel/make-yosys-netlist.sh which moved upstream to bazel-orfs
in commit 432edcd63; two were already addressed in commit c18e424
when gds/gds.gz were added and the _export_design_files helper was
factored out).
- flow/designs/design.bzl: make _export_design_files() idempotent
via a sentinel filegroup. design() and files() both call it, and
a BUILD file may legitimately call files() more than once (e.g.
files("verilog") and files("lef") in the same package). A second
native.exports_files over the same paths is a duplicate-target
error, so the sentinel short-circuits subsequent calls in the
same package. The sentinel rule itself is private to the package.
- flow/scripts/synth.sh: capture $(realpath "$2") once into log_file
rather than re-running it for both the stderr append and the tee
target in the genElapsedTime.py epilogue.
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>1 parent c44b22d commit cd5f4c7
2 files changed
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
31 | 39 | | |
| 40 | + | |
| 41 | + | |
32 | 42 | | |
33 | 43 | | |
34 | 44 | | |
35 | 45 | | |
36 | 46 | | |
37 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
38 | 53 | | |
39 | 54 | | |
40 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | | - | |
19 | | - | |
| 19 | + | |
| 20 | + | |
0 commit comments