-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrelease.txt.template
34 lines (25 loc) · 983 Bytes
/
release.txt.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
To use this release, paste the following into your `MODULE.bazel` file:
```starlark
bazel_dep(name = "toolchains_musl", version = "{version}", dev_dependency = True)
```
If you need to attach custom exec or target constraints to these toolchains, you can write:
```starlark
toolchains_musl = use_extension("@toolchains_musl//:toolchains_musl.bzl", "toolchains_musl", dev_dependency = True)
toolchains_musl.config(
extra_exec_compatible_with = ["//some/constraint:label"],
extra_target_compatible_with = ["@some//other/constraint:label"],
)
```
If you are using `WORKSPACE`, paste the following instead:
```starlark
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "musl_toolchains",
sha256 = "{sha256}",
url = "{url}",
)
load("@musl_toolchains//:repositories.bzl", "load_musl_toolchains")
load_musl_toolchains()
load("@musl_toolchains//:toolchains.bzl", "register_musl_toolchains")
register_musl_toolchains()
```