Skip to content

Use program name logic from former InitRunFiles#10095

Open
hzeller wants to merge 1 commit intoThe-OpenROAD-Project:masterfrom
hzeller:feature-20260409-runfile
Open

Use program name logic from former InitRunFiles#10095
hzeller wants to merge 1 commit intoThe-OpenROAD-Project:masterfrom
hzeller:feature-20260409-runfile

Conversation

@hzeller
Copy link
Copy Markdown
Collaborator

@hzeller hzeller commented Apr 9, 2026

Also, remove now the old, not used anymore InitRunFiles and library.

@github-actions github-actions bot added the size/M label Apr 9, 2026
@hzeller
Copy link
Copy Markdown
Collaborator Author

hzeller commented Apr 9, 2026

FYI @dsengupta0628 as you were working on the program name part.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

clang-tidy review says "All clean, LGTM! 👍"

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 removes the legacy runfiles shim and InitRunFiles.cpp, centralizing the logic for determining the executable's location into a new GetProgramLocation function within bazel/tcl_library_init.cc. The review identified several critical issues in the new function, including potential compilation errors, buffer over-reads on Linux, and undefined behavior on macOS. A suggested implementation was provided to address these bugs and restore path length validation.

@hzeller hzeller force-pushed the feature-20260409-runfile branch from ec41ae9 to 302fba9 Compare April 9, 2026 18:13
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

clang-tidy review says "All clean, LGTM! 👍"

@hzeller hzeller force-pushed the feature-20260409-runfile branch from 302fba9 to f7525a1 Compare April 9, 2026 18:24
Also, remove now the old, not used anymore InitRunFiles and
library.

Signed-off-by: Henner Zeller <h.zeller@acm.org>
@hzeller hzeller force-pushed the feature-20260409-runfile branch from f7525a1 to 46344b5 Compare April 9, 2026 18:27
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 9, 2026

clang-tidy review says "All clean, LGTM! 👍"

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.

1 participant