Skip to content

Conversation

@tkocmathla
Copy link
Contributor

@tkocmathla tkocmathla commented Jan 22, 2026

This PR fixes the Bazel build by bringing Torch-MLIR's Bazel version up to date with the LLVM one (8.4.2) at the LLVM submodule's pinned commit.

In order to get the build and tests passing, I had to make some small tweaks to the main BUILD.bazel file, and add a few explicit dependencies from Bazel Central. Note that this PR makes no attempt to migrate to the bzlmod system--that should be reserved for a separate effort--and so a few options are required in the .bazelrc to keep the legacy behavior for now.

@tkocmathla tkocmathla marked this pull request as ready for review January 22, 2026 09:44
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

set -e
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This makes it so the script exits if the docker build command fails, instead of falling through to the docker run command on failure.

@@ -1,5 +1,5 @@
ARG BASE_IMG=ubuntu:22.04
FROM ${BASE_IMG} as dev-base
FROM ${BASE_IMG} AS dev-base
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This just silences a warning about a case mismatch between the FROM and as keywords.

@tkocmathla tkocmathla marked this pull request as draft January 26, 2026 06:58
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.

1 participant