11 Commits

Author SHA1 Message Date
Keith Smiley
7dd069da0f
[bazel] Bump to latest point release (#185139)
Only minor fixes, just staying up to date.
2026-03-07 11:21:09 -08:00
Sergei Lebedev
ef68a53139
[MLIR] [Python] Added plumbing to run stubgen on the mlir._mlir package (#179211)
This allows generating stubs during Bazel builds, which was previously
only supported under CMake.

I decided not to use nanobind_stubgen from nanobind-bazel, because the
py_binary it generates is not easily usable in a genrule.
2026-02-09 12:29:31 +00:00
Aiden Grossman
01f70575a9 Revert "Fix bazel build for d5442b8 (#176034)"
This reverts commit 43f1edf0cfcbcce7c928e0e27221a5de1fb797ba.

Fixed already by 44b691a1e9e1201034120d71de8bc5b9b3c044e6.
2026-01-15 00:03:21 +00:00
Lily Gorsheneva
43f1edf0cf
Fix bazel build for d5442b8 (#176034)
Bazel equivalent of cmakelists changes.
2026-01-14 16:01:50 -08:00
Keith Smiley
9626c90c33
[bazel] Use zlib-ng from the BCR (#169450)
This way if a downstream project also uses this, it is dedup'd
2025-11-24 20:37:05 -08:00
Keith Smiley
ac4cf404d8
[bazel] Use zstd from the BCR (#169146)
This way if the downstream consuming project uses zstd we make sure
they are dedup'd. This uses a new rule to make sure layering_check still
works while allowing us to augment the upstream library rules with LLVM
specific `defines`.
2025-11-24 16:21:28 -08:00
Keith Smiley
1552efe887
[bazel] Bump to 8.4.2 (#168933)
Just staying up to date
2025-11-20 12:27:34 -08:00
Keith Smiley
930066f6e4
[bazel] Add explicit dep on protobuf (#168928)
This is required for correctly loading the protobuf rules. It's
possible we could drop the version here to a lower version, as long as
that version supports the versions of bazel we support. I picked this
because it is the current version being used by bazel 8.0.0 (which is
defined in the .bazelversion). Users can override this in their project
anyways if they need an older one
2025-11-20 11:20:17 -08:00
Jordan Rupprecht
afcb9537bb
[bazel] Fix bzlmod reference to @vulkan_sdk (#168767)
vulkan_sdk_setup is the name of the method that configures it, but the
repo itself has the name vulkan_sdk

This was caught by enabling the bzlmod flag for CI. The GH action runs
`blaze test @llvm-project/...` but the target is tagged manual, so it's
excluded. The buildkite CI runs `bazel query | xargs bazel test` which
will include manual targets.
2025-11-19 13:57:31 -06:00
Jordan Rupprecht
a4456a5ce3
[bazel] Flip --enable_bzlmod to true (#168555)
Switches to the config added in #164891

Fixes #55924
2025-11-19 12:12:41 -06:00
Jordan Rupprecht
4d093683ce
[bazel] Add MODULE.bazel (#164891)
This is a simple translation of the current WORKSPACE file.

* External repos are replaced with `bazel_dep()`. The versions have been
bumped to newer versions.
* `maybe()` doesn't seem to be a thing, so I just removed that.
* Existing repos where we define our own BUILD file in third_party_build
have *not* been replaced due to compatibility issues. For example,
`nanobind_bazel` could replace the `nanobind` config we have, but
switching to that caused some build errors.
* For these existing repos, they have been specified as module
extensions

This should have no effect since `.bazelrc` defines `common
--enable_bzlmod=false --enable_workspace`

Tested locally: `bazel test --enable_bzlmod --noenable_workspace
--config=generic_clang @llvm-project//... //...`
2025-11-18 09:48:13 -06:00