Migrate XLS OSS build to full Bzlmod and Bazel 8.7.0.#4449
Draft
copybara-service[bot] wants to merge 1 commit into
Draft
Migrate XLS OSS build to full Bzlmod and Bazel 8.7.0.#4449copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
0d5a9b1 to
975321c
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. - Configured rules_pycross in MODULE.bazel to only target the active Python version, preventing build failures on host systems without Python 3.8. - 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. - 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: 933300618
975321c to
6a206a6
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: