Repository navigation
flow: exports_files for scripts/synth.tcl - #4240
Merged
maliberty merged 1 commit intoMay 19, 2026
Merged
Conversation
Lets bazel-orfs reference `@orfs//flow:scripts/synth.tcl` as a direct Label, so its `_synth_tcl` attr default can point at this script instead of vendoring its own copy at the bazel-orfs repo root. bazel-orfs has carried a forked synth.tcl since parallel partition synthesis landed (e9b84aa orfs: ship parallel synthesis scripts and wrapper Makefile, bazel-orfs). The fork has drifted on a couple of points (missing the `-noabc` on `synth -run fine:`, lost `SYNTH_MINIMUM_KEEP_SIZE` branch, etc.) and the drift has caused real WNS regressions when yosys was bumped past 0.62. Exporting this label upstream is the first step toward retiring the bazel-orfs copy and letting it inherit fixes from this script directly. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
oharboe
commented
May 19, 2026
| # Expose synth.tcl as an addressable source label so bazel-orfs can | ||
| # point its `_synth_tcl` attr default at `@orfs//flow:scripts/synth.tcl` | ||
| # instead of vendoring its own (drifting) copy at the bazel-orfs repo | ||
| # root. See bazel-orfs `private/rules.bzl`. |
Collaborator
Author
There was a problem hiding this comment.
bazel-orfs uses this to implement parallel synthesis
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the flow/BUILD file to export scripts/synth.tcl as a public label, allowing external tools like bazel-orfs to reference it directly. The reviewer suggests using a glob to export all scripts in the directory instead of a single file to improve maintainability and ensure that sourced dependencies are also available as labels.
maliberty
approved these changes
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
...