Skip to content

Explicitly mark dependencies as keep for bracket-headers used.#365

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
hzeller:feature-20260525-keep-inc
May 26, 2026
Merged

Explicitly mark dependencies as keep for bracket-headers used.#365
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
hzeller:feature-20260525-keep-inc

Conversation

@hzeller
Copy link
Copy Markdown
Contributor

@hzeller hzeller commented May 25, 2026

This project uses bracket includes for dependencies that are actually vendored via the MODULE.bazel.
So they should use "zlib.h", "tcl.h" etc, but here they use <zlib.h>, <tcl.h> which makes them look like system headers.

They are meant to be using the vendored headers, to explicitly tell build_cleaner (bant) that the dependencies should be kept. (ideally, we fix the includes, but since this is a fork, this might be harder to maintain).

Also keeps @openmp for now, but see #364 if this is actually needed.

Copy link
Copy Markdown

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

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 adds comments to the BUILD file dependencies to prevent them from being removed by build tools. The reviewer suggested using the standard # keep directive instead of # build_cleaner keep to ensure better compatibility and conciseness across different Bazel dependency management tools.

Comment thread BUILD Outdated
@hzeller hzeller force-pushed the feature-20260525-keep-inc branch 2 times, most recently from d153e67 to 362856d Compare May 25, 2026 18:48
This project uses bracket includes for dependencies that are
actually vendored via the MODULE.bazel.
So they should use `"zlib.h"`, `"tcl.h"` etc, but here they
use `<zlib.h>`, `<tcl.h>` which makes them look like system headers.

They are meant to be using the vendored headers, to explicitly tell
build_cleaner (`bant`) that the dependencies should be kept.
(ideally, we fix the includes, but since this is a fork, this might
be harder to maintain).

Also keeps `@openmp` for now, but see The-OpenROAD-Project#364 if this is actually
needed.

Signed-off-by: Henner Zeller <h.zeller@acm.org>
@hzeller hzeller force-pushed the feature-20260525-keep-inc branch from 362856d to 224907d Compare May 25, 2026 18:51
@hzeller
Copy link
Copy Markdown
Contributor Author

hzeller commented May 26, 2026

CC @maliberty

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants