-
Notifications
You must be signed in to change notification settings - Fork 2
/
toolchains.bzl
129 lines (114 loc) · 5.69 KB
/
toolchains.bzl
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def toolchains_cloudabi_dependencies():
http_archive(
name = "org_llvm_llvm_x86_64_apple_darwin",
build_file = "@org_cloudabi_bazel_toolchains_cloudabi//:BUILD.llvm",
sha256 = "b3ad93c3d69dfd528df9c5bb1a434367babb8f3baea47fbb99bf49f1b03c94ca",
strip_prefix = "clang+llvm-7.0.0-x86_64-apple-darwin",
urls = ["https://releases.llvm.org/7.0.0/clang+llvm-7.0.0-x86_64-apple-darwin.tar.xz"],
)
http_archive(
name = "org_llvm_llvm_x86_64_unknown_freebsd",
build_file = "@org_cloudabi_bazel_toolchains_cloudabi//:BUILD.llvm",
sha256 = "95ceb933ccf76e3ddaa536f41ab82c442bbac07cdea6f9fbf6e3b13cc1711255",
strip_prefix = "clang+llvm-7.0.0-amd64-unknown-freebsd11",
urls = ["https://releases.llvm.org/7.0.0/clang+llvm-7.0.0-amd64-unknown-freebsd11.tar.xz"],
)
http_archive(
name = "org_llvm_llvm_x86_64_unknown_linux_gnu",
build_file = "@org_cloudabi_bazel_toolchains_cloudabi//:BUILD.llvm",
sha256 = "5c90e61b06d37270bc26edb305d7e498e2c7be22d99e0afd9f2274ef5458575a",
strip_prefix = "clang+llvm-7.0.0-x86_64-linux-gnu-ubuntu-14.04",
urls = ["https://releases.llvm.org/7.0.0/clang+llvm-7.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz"],
)
git_repository(
name = "org_cloudabi_argdata",
commit = "191ab391fbe0be3edbee59bedd73165de9b3abf5",
remote = "https://github.com/NuxiNL/argdata.git",
)
git_repository(
name = "org_cloudabi_cloudabi",
commit = "af51ede669dbca0875d20893dae7f760b052b238",
remote = "https://github.com/NuxiNL/cloudabi.git",
)
if "org_cloudabi_cloudabi_utils" not in native.existing_rules():
git_repository(
name = "org_cloudabi_cloudabi_utils",
commit = "be1ce21e1dded9c0c0a6ebe144cbea01cf44a874",
remote = "https://github.com/NuxiNL/cloudabi-utils.git",
)
if "org_cloudabi_cloudlibc" not in native.existing_rules():
git_repository(
name = "org_cloudabi_cloudlibc",
commit = "04a34ca2ead2408dde759395cc370b373ce8ed64",
remote = "https://github.com/NuxiNL/cloudlibc.git",
)
http_archive(
name = "org_llvm_cfe",
build_file = "@org_cloudabi_bazel_toolchains_cloudabi//:BUILD.cfe",
sha256 = "a45b62dde5d7d5fdcdfa876b0af92f164d434b06e9e89b5d0b1cbc65dfe3f418",
strip_prefix = "cfe-7.0.1.src",
urls = ["https://releases.llvm.org/7.0.1/cfe-7.0.1.src.tar.xz"],
)
http_archive(
name = "org_llvm_compiler_rt",
build_file = "@org_cloudabi_bazel_toolchains_cloudabi//:BUILD.compiler-rt",
sha256 = "782edfc119ee172f169c91dd79f2c964fb6b248bd9b73523149030ed505bbe18",
strip_prefix = "compiler-rt-7.0.1.src",
urls = ["https://releases.llvm.org/7.0.1/compiler-rt-7.0.1.src.tar.xz"],
)
http_archive(
name = "org_llvm_libcxx",
build_file = "@org_cloudabi_bazel_toolchains_cloudabi//:BUILD.libcxx",
patches = [
"@org_cloudabi_bazel_toolchains_cloudabi//:patches/libcxx-no-std-funcs.diff",
"@org_cloudabi_bazel_toolchains_cloudabi//:patches/libcxx-unsafe-string-includes.diff",
],
sha256 = "020002618b319dc2a8ba1f2cba88b8cc6a209005ed8ad29f9de0c562c6ebb9f1",
strip_prefix = "libcxx-7.0.1.src",
urls = ["https://releases.llvm.org/7.0.1/libcxx-7.0.1.src.tar.xz"],
)
http_archive(
name = "org_llvm_libcxxabi",
build_file = "@org_cloudabi_bazel_toolchains_cloudabi//:BUILD.libcxxabi",
sha256 = "8168903a157ca7ab8423d3b974eaa497230b1564ceb57260be2bd14412e8ded8",
strip_prefix = "libcxxabi-7.0.1.src",
urls = ["https://releases.llvm.org/7.0.1/libcxxabi-7.0.1.src.tar.xz"],
)
http_archive(
name = "org_llvm_libunwind",
build_file = "@org_cloudabi_bazel_toolchains_cloudabi//:BUILD.libunwind",
sha256 = "89c852991dfd9279dbca9d5ac10b53c67ad7d0f54bbab7156e9f057a978b5912",
strip_prefix = "libunwind-7.0.1.src",
urls = ["https://releases.llvm.org/7.0.1/libunwind-7.0.1.src.tar.xz"],
)
http_archive(
name = "org_musl_libc_musl",
patches = [
"@org_cloudabi_bazel_toolchains_cloudabi//:patches/musl-bazel.diff",
"@org_cloudabi_bazel_toolchains_cloudabi//:patches/musl-cloudabi.diff",
"@org_cloudabi_bazel_toolchains_cloudabi//:patches/musl-warnings.diff",
],
sha256 = "44be8771d0e6c6b5f82dd15662eb2957c9a3173a19a8b49966ac0542bbd40d61",
strip_prefix = "musl-1.1.20",
urls = ["https://www.musl-libc.org/releases/musl-1.1.20.tar.gz"],
)
http_archive(
name = "net_jemalloc_jemalloc",
build_file = "@org_cloudabi_bazel_toolchains_cloudabi//:BUILD.jemalloc",
patches = [
"@org_cloudabi_bazel_toolchains_cloudabi//:patches/jemalloc-cloudabi.diff",
"@org_cloudabi_bazel_toolchains_cloudabi//:patches/jemalloc-generated.diff",
],
sha256 = "5396e61cc6103ac393136c309fae09e44d74743c86f90e266948c50f3dbb7268",
strip_prefix = "jemalloc-5.1.0",
urls = ["https://github.com/jemalloc/jemalloc/releases/download/5.1.0/jemalloc-5.1.0.tar.bz2"],
)
http_archive(
name = "com_google_double_conversion",
patches = ["@org_cloudabi_bazel_toolchains_cloudabi//:patches/double-conversion-pull-54.diff"],
sha256 = "aef5f528dab826b269b54766a4c2d179e361866c75717af529f91c56b4034665",
strip_prefix = "double-conversion-3.1.0",
urls = ["https://github.com/google/double-conversion/archive/3.1.0.tar.gz"],
)