File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,25 @@ We currently offer limited customizability through attributes of the
50
50
[ llvm_toolchain\_\* rules] ( toolchain/rules.bzl ) . You can send us a PR to add
51
51
more configuration attributes.
52
52
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
+
53
72
A majority of the complexity of this project is to make it generic for multiple
54
73
use cases. For one-off experiments with new architectures, cross-compilations,
55
74
new compiler features, etc., my advice would be to look at the toolchain
You can’t perform that action at this time.
0 commit comments