File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 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
5050[ llvm_toolchain\_\* rules] ( toolchain/rules.bzl ) . You can send us a PR to add
5151more 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+
5372A majority of the complexity of this project is to make it generic for multiple
5473use cases. For one-off experiments with new architectures, cross-compilations,
5574new compiler features, etc., my advice would be to look at the toolchain
You can’t perform that action at this time.
0 commit comments