mirror of https://github.com/bazelbuild/rules_cc
45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
module(
|
|
name = "rule_based_toolchain",
|
|
version = "0.0.1",
|
|
)
|
|
|
|
bazel_dep(name = "platforms", version = "0.0.10")
|
|
bazel_dep(name = "googletest", version = "1.15.2")
|
|
bazel_dep(name = "bazel_skylib", version = "1.7.1")
|
|
bazel_dep(name = "rules_cc")
|
|
local_path_override(
|
|
module_name = "rules_cc",
|
|
path = "../..",
|
|
)
|
|
|
|
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
http_archive(
|
|
name = "clang-linux-x86_64",
|
|
build_file = "//toolchain:clang.BUILD",
|
|
sha256 = "9042f89df9c13a2bf28e16ce34dfe22934b59b5d8390e94b030bb378bdb3c898",
|
|
type = "zip",
|
|
url = "https://chrome-infra-packages.appspot.com/dl/fuchsia/third_party/clang/linux-amd64/+/git_revision:0cfd03ac0d3f9713090a581bda07584754c73a49",
|
|
)
|
|
|
|
http_archive(
|
|
name = "clang-linux-aarch64",
|
|
build_file = "//toolchain:clang.BUILD",
|
|
sha256 = "61abb915821190baddafa973c69a9db9acda5a16ed3a89489ea2b3b030a2330b",
|
|
type = "zip",
|
|
url = "https://chrome-infra-packages.appspot.com/dl/fuchsia/third_party/clang/linux-arm64/+/git_revision:0cfd03ac0d3f9713090a581bda07584754c73a49",
|
|
)
|
|
|
|
http_archive(
|
|
name = "linux_sysroot",
|
|
build_file = "//toolchain:linux_sysroot.BUILD",
|
|
sha256 = "f45ca0d8b46810b94d2a7dbc65f9092337d6a9568b260b51173a5ab9314da25e",
|
|
type = "zip",
|
|
url = "https://chrome-infra-packages.appspot.com/dl/fuchsia/third_party/sysroot/bionic/+/git_revision:702eb9654703a7cec1cadf93a7e3aa269d053943",
|
|
)
|
|
|
|
register_toolchains(
|
|
"//toolchain:host_cc_toolchain",
|
|
dev_dependency = True,
|
|
)
|