forked from eomii/rules_ll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMODULE.bazel
92 lines (80 loc) · 2.52 KB
/
MODULE.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
module(
name = "rules_ll",
version = "20230411.0",
compatibility_level = 0,
)
register_execution_platforms("@rules_ll//rbe/default/config:platform")
register_toolchains(
"@rules_ll//ll:ll_toolchain",
"@rules_ll//rbe/default/config:cc-toolchain",
"@rules_ll//rbe/default/java:all",
)
# Platform support.
bazel_dep(name = "platforms", version = "0.0.9")
bazel_dep(name = "rules_cc", version = "0.0.9")
# Various utility functions such as path manipulations and templating.
bazel_dep(name = "bazel_skylib", version = "1.5.0")
# Documentation. These should be dev_dependencies, but that doesn't work at the
# moment. This is a bug.
bazel_dep(name = "rules_java", version = "7.5.0", dev_dependency = True)
bazel_dep(name = "stardoc", version = "0.6.2", dev_dependency = False)
# The LLVM project. We override the specific commit below.
bazel_dep(name = "llvm-project-overlay", version = "17-init-bcr.3")
# Configure the llvm-project Bazel overlay.
llvm_project_overlay = use_extension(
"@llvm-project-overlay//utils/bazel:extensions.bzl",
"llvm_project_overlay",
)
llvm_project_overlay.configure(
commit = "582e1d58bd43af138033b98b736d97cc89c7b228",
patches = [
"@rules_ll//patches:mallinfo2_patch.diff",
"@rules_ll//patches:rules_ll_overlay_patch.diff",
"@rules_ll//patches:llvm-project-fix-bazel-7.diff",
"@rules_ll//patches:llvm-project-fix-zlib-includes.diff",
],
sha256 = "1b9f2f4ca426716a54fec16835cdf756ed8040fe98c7d67e047f8305ab7aae08",
targets = [
"AMDGPU",
"NVPTX",
"WebAssembly",
"X86",
],
)
use_repo(
llvm_project_overlay,
"llvm-project",
"llvm-raw",
)
# Set up dependencies for rules_ll.
rules_ll_dependencies = use_extension(
"@rules_ll//ll:init.bzl",
"rules_ll_dependencies",
)
use_repo(
rules_ll_dependencies,
"comgr",
"hip",
"hipamd",
"rocclr",
"rocm-device-libs",
"rocm-opencl-runtime",
"rocr",
"roct",
"zlib-ng",
"zstd",
)
bazel_dep(name = "rules_go", version = "0.46.0")
# This overrides the Go dependency github.com/cloudflare/circl, which requires
# custom patches beyond what Gazelle can generate.
bazel_dep(name = "circl", version = "1.3.7")
bazel_dep(name = "gazelle", version = "0.36.0")
go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
use_repo(
go_deps,
"com_github_go_git_go_git_v5",
"com_github_pulumi_pulumi_kubernetes_sdk_v4",
"com_github_pulumi_pulumi_sdk_v3",
"io_k8s_sigs_kind",
)