Skip to content

Migrate XLS OSS build to full Bzlmod and Bazel 8.7.0.#4449

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_933300618
Jun 24, 2026
Merged

Migrate XLS OSS build to full Bzlmod and Bazel 8.7.0.#4449
copybara-service[bot] merged 1 commit into
mainfrom
test_933300618

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jun 22, 2026

Copy link
Copy Markdown

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:

  • 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 Fix cross-compilation with rules_python ≥ 1.9.0 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.

@copybara-service copybara-service Bot force-pushed the test_933300618 branch 8 times, most recently from dfb7d1b to 0deabb9 Compare June 23, 2026 23:38
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
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.

Migrate XLS to bzlmod

1 participant