Migrate XLS OSS build to full Bzlmod and Bazel 8.7.0.#4449
Merged
Conversation
dfb7d1b to
0deabb9
Compare
This CL completes the migration of the open-source XLS build system to Bzlmod and Bazel 8.7.0, moving the final rules_hdl dependency to MODULE.bazel. Fixes #931. Key changes: - Migrated all open-source dependencies (including rules_hdl and OpenROAD) to Bzlmod in MODULE.bazel, completely removing legacy WORKSPACE linkages. - Upgraded the required Bazel version to 8.7.0. - Disabled legacy WORKSPACE evaluation in xls.bazelrc by removing the --enable_workspace flag, while preserving a minimal WORKSPACE file to maintain compatibility with older Bazelisk and IDE root-detection tools. - Upgraded OpenROAD to a recent main commit (1ac310f9) to pull in upstream Bzlmod compatibility fixes. - Added single_version_override for rules_pycross to 0.8.3 to absorb fix in jvolkman/rules_pycross#221. - Upgraded or-tools to 9.15 to align with OpenROAD's dependency requirements, and patched it to restore public visibility to pdlp_solver to resolve a target analysis block. - Added single_version_override for protobuf to 33.5 and applied a patch (fix_system_python.patch) to resolve system Python detection blocks on specific host environments. - Removed the obsolete algorithms:with_scip flag from the bazelrc configuration. - Upgraded the Python toolchain version to 3.13 to work with the new openroad version. - Removed the legacy proto_bazel_features workaround from MODULE.bazel as it is no longer required in a pure Bzlmod environment. - Updated Copybara translation rules in copy.bara.sky to correctly map the new open-source OpenSTA targets and translate runfile paths for FDO tools (Yosys, OpenSTA, ABC) to their Bzlmod-compliant canonical names. - Cleaned up obsolete patches and unnecessary Bzlmod single-version overrides. PiperOrigin-RevId: 937020957
0deabb9 to
1378d5d
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Migrate XLS OSS build to full Bzlmod and Bazel 8.7.0.
This CL completes the migration of the open-source XLS build system to Bzlmod and Bazel 8.7.0, moving the final rules_hdl dependency to MODULE.bazel.
Fixes #931.
Key changes: