Skip to content

Make tcl compilation work with ancient Tcl versions.#10061

Merged
maliberty merged 1 commit intoThe-OpenROAD-Project:masterfrom
hzeller:feature-20260406-fallback-tclsize
Apr 6, 2026
Merged

Make tcl compilation work with ancient Tcl versions.#10061
maliberty merged 1 commit intoThe-OpenROAD-Project:masterfrom
hzeller:feature-20260406-fallback-tclsize

Conversation

@hzeller
Copy link
Copy Markdown
Collaborator

@hzeller hzeller commented Apr 6, 2026

In Tcl versions before 8.6.13, the type Tcl_Size
was not available. Add typedefs for these to be able to compile with these ancient versions of Tcl.

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 adds a Tcl_Size typedef across multiple SWIG interface files to support Tcl 9. Review feedback indicates that the current preprocessor guard is too broad and will cause compilation errors on Tcl 8.6.13 and later, where Tcl_Size is already defined as a macro. The reviewer recommends adding !defined(Tcl_Size) to the guards and suggests centralizing this logic to reduce duplication across the codebase.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

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

In Tcl versions before 8.6.13, the type Tcl_Size
was not available. Add typedefs for these to be able to
compile with these ancient versions.

Signed-off-by: Henner Zeller <h.zeller@acm.org>
@hzeller hzeller force-pushed the feature-20260406-fallback-tclsize branch from a1f7f96 to c52de13 Compare April 6, 2026 08:51
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 6, 2026

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

@hzeller
Copy link
Copy Markdown
Collaborator Author

hzeller commented Apr 6, 2026

ci faliures look like they are due to random download issues.

@hzeller
Copy link
Copy Markdown
Collaborator Author

hzeller commented Apr 6, 2026

@mikesinouye FYI

@maliberty
Copy link
Copy Markdown
Member

Looking forward to bzl and not dealing with local tcl versions.

@maliberty maliberty enabled auto-merge April 6, 2026 17:44
@maliberty maliberty merged commit b59f633 into The-OpenROAD-Project:master Apr 6, 2026
15 of 16 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