Commit Graph

7 Commits

Author SHA1 Message Date
Siddhartha Bagaria 6d25c3840a
Revert "Update compability_level in MODULE.bazel" (#296)
Reverts bazel-contrib/toolchains_llvm#295
2024-03-14 16:53:37 -07:00
Siddhartha Bagaria 8301a103fc
Update compability_level in MODULE.bazel (#295) 2024-03-14 15:04:18 -07:00
Siddhartha Bagaria 2310c12118
Update remaining deps (#284) 2024-03-11 22:17:50 -07:00
Siddhartha Bagaria f9666fff58
Move minimum supported version to Bazel 7.0.0 (#229)
This removes the need to provide flags like:

- `--incompatible_enable_cc_toolchain_resolution`
- `--features=-libtool` on macOS.
- `--features=-supports_dynamic_linker` on macOS.

As part of the update, test dep versions have also been updated.
2024-03-11 21:53:46 -07:00
Siddhartha Bagaria e4fad4e6c1 Automatically update versions in MODULE.bazel 2023-09-14 09:14:03 +00:00
Siddhartha Bagaria bb94933b62
Misc cleanups (#216)
- Prepare for BCR release as 0.10.0
- Rename repo name to toolchains_llvm
- Upgrade Go version in tests and remove -nopie flag
- Combine lint and tests workflow
2023-09-14 00:03:26 -07:00
Gabriel Féron 5c6f8066fa
Add support for bzlmod (#198)
This is a fairly straightforward change that adds support for using `bazel-toolchain` with `bzlmod`.

The `llvm.toolchain` extension is only a wrapper around the existing `llvm_toolchain` repository rule and supports the same attributes.

For trying it out, add the following to your `MODULE.bazel`:

```
bazel_dep(name = "com_grail_bazel_toolchain", version = "0.8")
git_override(module_name = "com_grail_bazel_toolchain", remote = "https://github.com/grailbio/bazel-toolchain", commit = "cf915e5c7cfcd19a3e71de54e385e01240b865dc")

llvm = use_extension("@com_grail_bazel_toolchain//toolchain:extensions.bzl", "llvm")
llvm.toolchain(
    llvm_version = "15.0.0"
)

use_repo(llvm, "llvm_toolchain")

register_toolchains("@llvm_toolchain//:all")
```

---------

Co-authored-by: James Sharpe <james.sharpe@zenotech.com>
Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
Co-authored-by: Gabriel Féron <g@leirbagl.net>
2023-09-12 09:46:02 -07:00