forked from risc0/risc0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
34 lines (27 loc) · 810 Bytes
/
BUILD.bazel
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
load("//bazel/rules/clang_format:defs.bzl", "clang_format_toolchain")
package(default_visibility = ["//visibility:public"])
exports_files([".clang-format"])
filegroup(
name = "clang_tidy_config",
data = [".clang-tidy"],
)
clang_format_toolchain(
name = "clang_format_toolchain_impl",
clang_format = select({
"@bazel_tools//platforms:windows": "@py3_env//:py3_env/Library/bin/clang-format.exe",
"//conditions:default": "@py3_env//:py3_env/bin/clang-format",
}),
)
toolchain(
name = "clang_format_toolchain",
toolchain = "clang_format_toolchain_impl",
toolchain_type = "//bazel/rules/clang_format:toolchain_type",
)
py_binary(
name = "clang-format",
srcs = ["clang-format.py"],
)
alias(
name = "rustfmt",
actual = "@rules_rust//:rustfmt",
)