Skip to content

Commit 0990c3b

Browse files
authored
Doc update (#462)
docs: Explain how o add a specific version/target before it is added to llvm_distributions.bzl
1 parent 0bd3bff commit 0990c3b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,25 @@ We currently offer limited customizability through attributes of the
5050
[llvm_toolchain\_\* rules](toolchain/rules.bzl). You can send us a PR to add
5151
more configuration attributes.
5252

53+
The following shows how to add a specific version for a specific target before
54+
the version was added to [llvm_distributions.bzl](toolchain/internal/llvm_distributions.bzl):
55+
56+
```starlark
57+
llvm_toolchain(
58+
name = "llvm_toolchain",
59+
llvm_version = "19.1.6",
60+
sha256 = {"linux-x86_64": "d55dcbb309de7ade4e3073ec3ac3fac4d3ff236d54df3c4de04464fe68bec531"},
61+
strip_prefix = {
62+
"linux-x86_64": "LLVM-19.1.6-Linux-X64",
63+
},
64+
urls = {
65+
"linux-x86_64": [
66+
"https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.6/LLVM-19.1.6-Linux-X64.tar.xz",
67+
],
68+
},
69+
)
70+
```
71+
5372
A majority of the complexity of this project is to make it generic for multiple
5473
use cases. For one-off experiments with new architectures, cross-compilations,
5574
new compiler features, etc., my advice would be to look at the toolchain

0 commit comments

Comments
 (0)