Repository navigation
kepler-formal: bump with one line, no submodule, no per-platform build flags #4732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
oharboe
wants to merge
5
commits into
The-OpenROAD-Project:master
Choose a base branch
from
oharboe:kepler-formal-bazel
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f072fc3
build_openroad: install kepler-formal with a relative RUNPATH
saikatchatrg 21f7101
etc/kepler-formal: pin kepler-formal and install it with one command
oharboe 513e510
build_openroad: install kepler-formal from etc/kepler-formal
oharboe a92b10c
Remove the tools/kepler-formal submodule
oharboe 2aa8f0a
DependencyInstaller: drop the packages only kepler-formal needed
oharboe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| common --registry=https://bcr.bazel.build/ | ||
|
|
||
| build --cxxopt=-std=c++20 | ||
| build --host_cxxopt=-std=c++20 | ||
| build -c opt | ||
|
|
||
| # As kepler-formal's own .bazelrc. | ||
| common --enable_platform_specific_config | ||
| build:linux --dynamic_mode=off |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 8.6.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # bazelisk run //:install -- <prefix> | ||
| alias( | ||
| name = "install", | ||
| actual = "@kepler-formal//:install", | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| """Pins the kepler-formal that build_openroad.sh installs. | ||
|
|
||
| ORFS is not a Bazel project: this module exists only to install | ||
| kepler-formal into tools/install/kepler-formal. See README.md. | ||
| """ | ||
|
|
||
| module(name = "orfs-kepler-formal") | ||
|
|
||
| # To bump kepler-formal, change this version. | ||
| bazel_dep(name = "kepler-formal", version = "0.5.0-20261020-0be91596") | ||
|
|
||
| # TODO(keplertech/kepler-formal#292): delete this override once a | ||
| # kepler-formal version with the //:install target is on the registry, | ||
| # and move the version above to it. | ||
| git_override( | ||
| module_name = "kepler-formal", | ||
| commit = "99d66cac88978312853a10b82657781f8e99d843", | ||
| remote = "https://github.com/oharboe/kepler-formal.git", | ||
| ) | ||
|
|
||
| # kepler-formal builds with a downloaded clang. It registers that | ||
| # toolchain for its own builds only, so a module that depends on it | ||
| # registers it too. Elsewhere the host compiler is used. | ||
| bazel_dep(name = "llvm", version = "0.8.24") | ||
|
|
||
| llvm_toolchains = use_extension("@llvm//extensions:toolchain.bzl", "toolchain") | ||
| use_repo(llvm_toolchains, "llvm_toolchains") | ||
|
|
||
| register_toolchains("@llvm_toolchains//:all") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # kepler-formal | ||
|
|
||
| To bump kepler-formal, change the version in `MODULE.bazel`. | ||
|
|
||
| `build_openroad.sh --local` installs kepler-formal into | ||
| `tools/install/kepler-formal/bin/kepler-formal` from this folder: | ||
|
|
||
| ```shell | ||
| cd etc/kepler-formal | ||
| bazelisk run //:install -- "$(pwd)/../../tools/install/kepler-formal" | ||
| ``` | ||
|
|
||
| ORFS is not a Bazel project. This folder only pins kepler-formal; the | ||
| install is kepler-formal's own `//:install` target. | ||
|
|
||
| ## How this maps to `DependencyInstaller.sh` | ||
|
|
||
| `DependencyInstaller.sh` downloads a pinned CMake from Kitware when the | ||
| one the OS ships is too old, and checks it against a checksum. Bazel | ||
| does the same for kepler-formal and every library it needs, from the | ||
| [Bazel Central Registry](https://registry.bazel.build/), which keeps the | ||
| URL, the checksum and the build file of each version: | ||
|
|
||
| | `DependencyInstaller.sh`, `build_openroad.sh` | Here | | ||
| | --- | --- | | ||
| | oneTBB and capnproto from the OS, or built from a pinned tarball | `bazel_dep` versions in kepler-formal's `MODULE.bazel` | | ||
| | A pinned CMake when the OS's is too old | bazelisk runs the Bazel named in `.bazelversion` | | ||
| | `gcc-toolset-13` on EL8, because GCC 8 is too old | A pinned clang is downloaded on x86-64 Linux; elsewhere the host compiler is used | | ||
| | `tools/kepler-formal` and the submodules inside it | The version in `MODULE.bazel`; sources are checked against their checksums and cached in `~/.cache/bazel` | | ||
| | An RPATH that points at the install's `lib/` | The binary finds its libraries next to itself, in `bin/kepler-formal.runfiles/` | | ||
|
|
||
| ## What goes away as upstream merges | ||
|
|
||
| 1. When a registry version of kepler-formal has the install target | ||
| (keplertech/kepler-formal#292, after | ||
| bazelbuild/bazel-central-registry#11201): delete the `git_override` in | ||
| `MODULE.bazel` and move the version to it. | ||
| 2. When kepler-formal registers its compiler for modules that depend on | ||
| it: delete the toolchain lines in `MODULE.bazel`. |
Submodule kepler-formal
deleted from
f70c2e
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.