Skip to content

Use additional_linker_inputs in order to be compatible to Bazel 9 - #12

Merged
martin4861 merged 1 commit into
swift-3.3from
martin4861/bazel9-mkl-support
Jun 11, 2026
Merged

Use additional_linker_inputs in order to be compatible to Bazel 9#12
martin4861 merged 1 commit into
swift-3.3from
martin4861/bazel9-mkl-support

Conversation

@martin4861

Copy link
Copy Markdown

Adapted to make the mkl libs compatible to newer versions of Bazel 9/rules_cc

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Bazel/module configuration so the MKL static libraries link correctly under Bazel 9 / newer rules_cc, avoiding --whole-archive behavior that can introduce undefined-symbol link failures.

Changes:

  • Bump rules_cc dependency version to 0.2.18.
  • Update the MKL cc_library to use additional_linker_inputs (and remove alwayslink / direct archive deps) to prevent unintended --whole-archive linking under Bazel 9.
  • Add detailed inline documentation explaining the MKL static-linking rationale and failure mode.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
MODULE.bazel Updates the rules_cc version for Bazel 9 compatibility.
extensions/mkl.BUILD Adjusts MKL linking inputs/flags to avoid --whole-archive and documents the rationale.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread extensions/mkl.BUILD
@martin4861
martin4861 merged commit 4858ee8 into swift-3.3 Jun 11, 2026
1 check passed
@martin4861
martin4861 deleted the martin4861/bazel9-mkl-support branch June 11, 2026 13:51
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.

4 participants