bazel: migrate hermetic_cc_toolchain to bzlmod

This commit is contained in:
Malte Poll 2024-05-21 13:30:22 +02:00
parent 3be4adb7c4
commit d179fae776
3 changed files with 1 additions and 20 deletions

View File

@ -1,3 +1,4 @@
module(name = "constellation") module(name = "constellation")
bazel_dep(name = "bazel_skylib", version = "1.6.1") bazel_dep(name = "bazel_skylib", version = "1.6.1")
bazel_dep(name = "hermetic_cc_toolchain", version = "3.1.0")

View File

@ -202,10 +202,6 @@ buildifier_deps()
# C / C++ toolchains # C / C++ toolchains
load("//bazel/toolchains:hermetic_cc_deps.bzl", "hermetic_cc_deps")
hermetic_cc_deps()
load("@hermetic_cc_toolchain//toolchain:defs.bzl", zig_toolchains = "toolchains") load("@hermetic_cc_toolchain//toolchain:defs.bzl", zig_toolchains = "toolchains")
# If needed, we can specify a specific version of the Zig toolchain to use. # If needed, we can specify a specific version of the Zig toolchain to use.

View File

@ -1,16 +0,0 @@
"""hermetic cc toolchain (bazel-zig-cc) build rules"""
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def hermetic_cc_deps():
"""Loads the dependencies for hermetic_cc_toolchain."""
http_archive(
name = "hermetic_cc_toolchain",
urls = [
"https://cdn.confidential.cloud/constellation/cas/sha256/3bc6ec127622fdceb4129cb06b6f7ab098c4d539124dde96a6318e7c32a53f7a",
"https://github.com/uber/hermetic_cc_toolchain/releases/download/v3.0.1/hermetic_cc_toolchain-v3.0.1.tar.gz",
],
type = "tar.gz",
sha256 = "3bc6ec127622fdceb4129cb06b6f7ab098c4d539124dde96a6318e7c32a53f7a",
)