Skip to content

Break out Tcl readline set-up into separate file.#10057

Merged
maliberty merged 1 commit intoThe-OpenROAD-Project:masterfrom
hzeller:feature-20260405-breakout-rd
Apr 7, 2026
Merged

Break out Tcl readline set-up into separate file.#10057
maliberty merged 1 commit intoThe-OpenROAD-Project:masterfrom
hzeller:feature-20260405-breakout-rd

Conversation

@hzeller
Copy link
Copy Markdown
Collaborator

@hzeller hzeller commented Apr 5, 2026

It became a bit bulky in the Main.cc.

It became a bit bulky in the Main.cc.

Signed-off-by: Henner Zeller <h.zeller@acm.org>
Copy link
Copy Markdown
Contributor

@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 refactors the tclreadline initialization logic by moving it from Main.cc into a dedicated tcl_readline_setup library, with corresponding updates to Bazel and CMake build systems. Feedback focuses on addressing a regression in error handling where initialization failures no longer terminate the application, ensuring error messages are sent to stderr, and improving code maintainability by cleaning up includes and using helper functions for Tcl command evaluation.

Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

@hzeller
Copy link
Copy Markdown
Collaborator Author

hzeller commented Apr 5, 2026

clang-tidy has the usual issue with tcl includes, rest looks good.

@hzeller
Copy link
Copy Markdown
Collaborator Author

hzeller commented Apr 7, 2026

Once we have this in, we can use a simple function call in the submodule opensta build to also get readline support for free.

@maliberty maliberty merged commit 9fd7346 into The-OpenROAD-Project:master Apr 7, 2026
14 of 15 checks passed
@maliberty
Copy link
Copy Markdown
Member

Once we have this in, we can use a simple function call in the submodule opensta build to also get readline support for free.

sta can also be built standalone. How will this work? Normally sta has no dependency on OR

@hzeller
Copy link
Copy Markdown
Collaborator Author

hzeller commented Apr 7, 2026

Right now, for the purpose of bazel, openSTA can only be built when it is part of a submodule within OpenROAD. OpenSTA does not have its own MODULE.bazel for instance., so the BUILD file it has only works within OpenROAD.

@maliberty
Copy link
Copy Markdown
Member

I don't think we should assume that into the future.

@hzeller
Copy link
Copy Markdown
Collaborator Author

hzeller commented Apr 7, 2026

once we want to build opensta standalone with bazel, we can revisit

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