Commit Graph

382 Commits

Author SHA1 Message Date
Steven Casagrande 853de704a9
Add support for Oracle Linux (#278) 2024-03-04 22:55:31 +00:00
renovate[bot] 1d58ed6bd4
Update dependency rules_rust to v0.39.0 (#274)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-21 20:08:47 +00:00
renovate[bot] 1ca11e2755
Update dependency platforms to v0.0.8 (#270)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-13 21:32:40 +00:00
renovate[bot] 135aa89954
Update dependency rules_cc to v0.0.9 (#271)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-13 21:32:10 +00:00
renovate[bot] b903d23524
Update dependency rules_rust to v0.38.0 (#268)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-13 21:31:00 +00:00
renovate[bot] de1438c0bb
Update actions/checkout action to v4 (#269)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-13 21:30:24 +00:00
renovate[bot] cda0afbb0f
Update rules_rust digest to a844b19 (#263)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-13 20:46:48 +00:00
renovate[bot] 578112a32c
Update dependency rules_foreign_cc to v0.10.1 (#267)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-13 20:46:16 +00:00
renovate[bot] ed7e775733
Update dependency com_github_google_benchmark to v1.8.3 (#265)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-13 20:44:55 +00:00
renovate[bot] 0a3e04d519
Update dependency bazel_skylib to v1.5.0 (#264)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-13 20:44:32 +00:00
renovate[bot] 1ecca11148
Update dependency com_google_googletest to v1.14.0 (#266)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-13 20:44:17 +00:00
renovate[bot] e71b405193
Update dependency bazel_skylib to v1.5.0 (#260) 2024-02-13 19:26:52 +00:00
James Sharpe 7dc0c6a73b
Update renovate.json
Turn off updating of the root MODULE.bazel by using the renovate.json config from the rules-template repository.
2024-02-13 18:59:35 +00:00
Siddhartha Bagaria ba56fd4258
List new shasum for recent releases (#255)
Closes #253.
2024-02-13 09:58:56 -08:00
renovate[bot] 2ab388c435
Configure Renovate (#252)
* Add renovate.json

* Trunk fixes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Siddhartha Bagaria <sidb@x.team>
2024-02-12 18:01:42 -08:00
Siddhartha Bagaria 228c08c8f3 Refacter links after repo transfer 2024-02-12 16:41:43 -08:00
Siddhartha Bagaria a29c67a7ab
Prepare for transfer to bazel-contrib (#251)
- Removes maintenance notice at top of README.
- Adds CODEOWNERS file.
2024-02-06 11:53:40 -08:00
Fabian Meumertzheim 05f0bc1f4b
Add support for `layering_check` (#246)
* Add support for `layering_check`

The general support for this feature is inherited from the
Bazel-provided Unix C++ toolchain, except that a module map for the
toolchain and sysroot headers has to be supplied to the `cc_toolchain`.

Requires an update of abseil-cpp to make it compatible with
`layering_check`. Some other deps also needed to be updated.

Also fixes some nits related to Bazel 7 upgrade.
2024-01-19 14:31:56 -08:00
steple 214fc1cc5d
17.0.5 and 17.0.6 for x86_64 (#241) 2023-12-13 11:33:13 +09:00
Morten larsen ade23e0e37
Add all_includes target for building loadable clang-tidy plugins (#188)
By exposing all includes it is possible for users of this toolchain to build clang-tidy plugins compatible with the toolchain's clang-tidy binary, using the `-load=` option of clang-tidy.
2023-11-09 11:47:47 +09:00
Gary Miguel be5352b7e6
Add 17.0.2 for macOS arm64 (#236) 2023-11-09 11:40:16 +09:00
Siddhartha Bagaria 7500623e00 Fix Lint issue 2023-11-02 11:23:00 +09:00
asa c708a4d1c6
Update hashes for 17.03, 17.04 (#239) 2023-11-02 11:02:47 +09:00
Nikolaus Wittenstein 1e5f3c632e
Update 17.0.1 and 17.0.2 hashes (#232)
I ran:
`utils/llvm_checksums.sh -g -v 17.0.1`
`utils/llvm_checksums.sh -g -v 17.0.2`
and incorporated the differences into this file.
2023-10-10 19:03:02 +01:00
David Zbarsky 0a9feb7237
Use rctx.read instead of cat to parse /etc/os-release (#231) 2023-10-06 16:10:40 +01:00
Siddhartha Bagaria 42fa12b88d
Better document supports_dynamic_linker (#230)
This was mentioned in #189 but did not quite surface properly.

Will also change the release notes for some recent releases.
2023-10-05 19:56:15 -07:00
Oliver Lee a76d197a47
Set release name for ubuntu + 17.0.2 (#226) 2023-10-03 20:32:52 -07:00
Siddhartha Bagaria 91abcad9e4
Update release_notes_template.txt
Fix minor typo
2023-09-29 10:56:04 -07:00
nolen777 b1a7b9dbfe
Add 14.0.6 with arm64 apple-darwin (#225) 2023-09-29 10:54:49 -07:00
David Zbarsky 27335614e4
Avoid calling xcrun on darwin if we don't need to (#223) 2023-09-20 14:18:36 -07:00
Michael Bauer 885e6926f2
Fix release notes template (#222)
@toolchains_llvm should be @llvm_toolchain in the final load().
2023-09-19 17:13:34 -07:00
Siddhartha Bagaria 42e0b400fe
Update LLVM versions in tests to 16 (#221)
Updates to 16.0.0 as default, 16.0.5 for Apple Silicon, but keeps 15.0.7 for x86 Apple.

Bonus changes:
- Include libtinfo5 in test envs
- New include dirs format as lib/clang/16/include/
2023-09-19 12:31:29 -07:00
Siddhartha Bagaria 5a276de87b Instructions for git_override in release notes 2023-09-19 16:09:09 +00:00
Nikolaus Wittenstein 3e6d4d962c
Add 16.0.5 and 16.0.6 distributions (#220) 2023-09-18 09:59:00 -07:00
Siddhartha Bagaria edc058a175
Forward all attributes to bzlmod extension (#218)
Reported by @jsharpe in
https://github.com/grailbio/bazel-toolchain/issues/128#issuecomment-1720193472.
2023-09-14 15:37:59 -07:00
Steven Casagrande 2c25456292
15.0.2 and fixes /etc/os-release parsing bug (#217)
* Add 15.0.2 support

* Fixes for linux OSes with empty lines in /etc/os-release

---------

Co-authored-by: Steven Casagrande <steven.casagrande@ibm.com>
2023-09-14 11:47:28 -07:00
Siddhartha Bagaria e4fad4e6c1 Automatically update versions in MODULE.bazel 2023-09-14 09:14:03 +00:00
Siddhartha Bagaria df8ee5a0d6 Automated release workflow with notes generation 2023-09-14 08:01:06 +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
Siddhartha Bagaria 1cf6ea867f Update README for 0.9 2023-09-14 04:16:21 +00:00
Siddhartha Bagaria 882c3ff295
Update issue link for usage of --nopie. (#215)
Closes #183.
2023-09-13 20:55:07 -07:00
Siddhartha Bagaria c217c03479 Do not force PIC linkage in external tests
For reasons unknown, rules_go linkages are happening with PIC forced,
but abseil is not.

We can re-enable external tests on LLVM 15 by explicitly saying `-nopie`
to the linker. However, abseil builds will complain about the flag.
2023-09-13 07:01:17 +00:00
Siddhartha Bagaria 87b25ed659
Fix all lint warnings (#214)
As per `trunk check --all`.
2023-09-12 17:48:11 -07:00
Siddhartha Bagaria c196bc1e10
Format all files (#213)
Formats all files as per `trunk fmt --all`.

Also adds .editorconfig for capturing indent style.
2023-09-12 16:05:22 -07:00
Siddhartha Bagaria 07541b9bde Setup Trunk as a meta-linter for the repo
Configures buildifier to run with a config obtained from removing
docstring and 'sorted items in dict' warnings from the example config.
```
.trunk/tools/buildifier -config=example
```
2023-09-12 21:45:29 +00:00
Siddhartha Bagaria 0f21054378 Fix tests matrix (attempt #2) 2023-09-12 20:50:58 +00:00
Siddhartha Bagaria 0d13a3e3d1 Fix tests matrix 2023-09-12 20:38:29 +00:00
Siddhartha Bagaria 42a5552c76 Minor cleanup for recent bzlmod support 2023-09-12 20:10:41 +00: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
David Zbarsky 9d8cc8a498
Fix OSX tests (#211) 2023-09-01 11:11:58 -07:00