Skip to content

Document more layering-check issues.#10693

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
hzeller:feature-20260619-doc-layering
Jun 26, 2026
Merged

Document more layering-check issues.#10693
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
hzeller:feature-20260619-doc-layering

Conversation

@hzeller

@hzeller hzeller commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Add the layering check to BUILD files that miss it, then explicitly switch it off for libraries with issues.

@hzeller hzeller requested review from a team as code owners June 19, 2026 09:24
@hzeller hzeller requested a review from maliberty June 19, 2026 09:24

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request enables the "layering_check" feature across multiple Bazel packages to enforce strict header dependency checks, while disabling it for a specific C++ library that relies on private headers. The review feedback correctly points out that enabling "layering_check" in packages containing only Python targets or filegroups is redundant, as it is a C++ compilation check.

Comment thread docs/src/scripts/BUILD Outdated
Comment thread test/orfs/asap7/BUILD Outdated
@maliberty

Copy link
Copy Markdown
Member

gemini comments seem relevant

@maliberty

Copy link
Copy Markdown
Member

@hzeller ping?

@hzeller hzeller force-pushed the feature-20260619-doc-layering branch from 0f9c854 to 266e213 Compare June 26, 2026 05:43
@hzeller

hzeller commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator Author

Removed the layering check from the packages for now, but it also makes it easier to forget later once the first cc_library is added...

@maliberty

Copy link
Copy Markdown
Member

why is sta updated in this PR?

Add the layering check to BUILD files that miss it, then
explicitly switch it off for libraries with issues.

Signed-off-by: Henner Zeller <h.zeller@acm.org>
@hzeller hzeller force-pushed the feature-20260619-doc-layering branch from 266e213 to f409d33 Compare June 26, 2026 08:02
@github-actions github-actions Bot added size/XS and removed size/S labels Jun 26, 2026
@hzeller

hzeller commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator Author

looks like sta was updated in-between, and I didn't pick it up when rebasing. Fixed.

@maliberty maliberty merged commit 28a1229 into The-OpenROAD-Project:master Jun 26, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants