-
Notifications
You must be signed in to change notification settings - Fork 10
/
MODULE.bazel
67 lines (60 loc) · 1.87 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
module(
name = "rules_ll",
version = "20230411.0",
compatibility_level = 0,
)
register_toolchains("@rules_ll//ll:ll_toolchain")
# Platform support.
bazel_dep(name = "platforms", version = "0.0.10")
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.7.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.6.1", dev_dependency = False)
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 = "196dca7561b4c3865ef7d5e45c22d215619d7385",
patches = [
"@rules_ll//patches:mallinfo2_patch.diff",
"@rules_ll//patches:rules_ll_overlay_patch.diff",
"@rules_ll//patches:llvm-project-fix-zlib-includes.diff",
"@rules_ll//patches:llvm-add-missing-cuda-cmath-header.diff",
"@rules_ll//patches:llvm-project-bundle-with-bash.diff",
],
sha256 = "7d097fe703ca41f5458ca5809f21fdb8ca13e2e6c28b3d3de85c700e43ccc7ed",
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,
"clr",
"hip",
"llvm-project-rocm",
"local-remote-execution",
"rocr",
"roct",
"zlib-ng",
"zstd",
)