Skip to content

Package system Tcl-files into openroad binary, that it can easily be used standalone #9980

@hzeller

Description

@hzeller

Right now, the bazel build of openroad has all the relevant tcl system files (e.g. init.tcl, but also timezone data) packaged as runfiles. This has multiple issues

  • Without intervention, this just works if openroad is called from within the bazel workspace. If it is copied outside, the user has to figure out a way to assemble the TCL_LIBRARY path. This makes it hard to just distribute a openroad binary.
  • The single files in the runfiles require a symlink-tree for each of the uses (e.g. each test that uses the openroad binary) (see bazel: trim tcl_lang runfiles to reduce test symlinks by 58% #9973 )

Tcl already has a way to solve all this: package all these files together and use that via a virtual filesystem, then embed this collection into the final binary. There are multiple ways of doing that, needs to be explored. This entails

Result: a binary that is independent, can be copied anywhere and provides the full functionality. Also possibly faster to use in unit tests.

cc: @oharboe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions