2023-04-27 04:27:43 -04:00
|
|
|
"""hermetic cc toolchain (bazel-zig-cc) build rules"""
|
2023-01-30 11:15:59 -05:00
|
|
|
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
2023-04-27 04:27:43 -04:00
|
|
|
def hermetic_cc_deps():
|
|
|
|
"""Loads the dependencies for hermetic_cc_toolchain."""
|
2023-01-30 11:15:59 -05:00
|
|
|
|
|
|
|
http_archive(
|
|
|
|
name = "bazel_skylib",
|
|
|
|
sha256 = "74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
|
|
|
|
urls = [
|
|
|
|
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
|
2023-03-30 03:41:56 -04:00
|
|
|
"https://cdn.confidential.cloud/constellation/cas/sha256/74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506",
|
2023-01-30 11:15:59 -05:00
|
|
|
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
|
|
|
|
],
|
2023-03-30 03:41:56 -04:00
|
|
|
type = "tar.gz",
|
2023-01-30 11:15:59 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
http_archive(
|
2023-04-27 04:27:43 -04:00
|
|
|
name = "hermetic_cc_toolchain",
|
|
|
|
sha256 = "43a1b398f08109c4f03b9ba2b3914bd43d1fec0425f71b71f802bf3f78cee0c2",
|
2023-03-30 03:41:56 -04:00
|
|
|
urls = [
|
2023-04-27 04:27:43 -04:00
|
|
|
"https://cdn.confidential.cloud/constellation/cas/sha256/43a1b398f08109c4f03b9ba2b3914bd43d1fec0425f71b71f802bf3f78cee0c2",
|
|
|
|
"https://github.com/uber/hermetic_cc_toolchain/releases/download/v2.0.0-rc1/hermetic_cc_toolchain-v2.0.0-rc1.tar.gz",
|
2023-03-30 03:41:56 -04:00
|
|
|
],
|
|
|
|
type = "tar.gz",
|
2023-01-30 11:15:59 -05:00
|
|
|
)
|