Created
March 29, 2021 21:39
-
-
Save sayrer/6b62c1e5385c4961635e3aedee90b6e1 to your computer and use it in GitHub Desktop.
Loading Grail's llvm_toolchain with a Chromium sysroot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Change master to the git tag you want. | | |
http_archive( | | |
name = "com_grail_bazel_toolchain", | | |
strip_prefix = "bazel-toolchain-master", | | |
sha256 = "060d02182794e39033987c4f0b043c653154621ae9d01420aca1a9b63175447a", | | |
urls = ["https://github.com/grailbio/bazel-toolchain/archive/master.tar.gz"], | | |
) | | |
| | |
load("@com_grail_bazel_toolchain//toolchain:deps.bzl", "bazel_toolchain_dependencies") | | |
| | |
bazel_toolchain_dependencies() | | |
| | |
load("@com_grail_bazel_toolchain//toolchain:rules.bzl", "llvm_toolchain") | | |
| | |
llvm_toolchain( | | |
name = "llvm_toolchain", | | |
llvm_version = "8.0.0", | | |
sysroot = {"linux": "@grafica_build//sysroots/debian_sid_amd64-sysroot:sysroot"}, | | |
) | | |
| | |
load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains") | | |
| | |
llvm_register_toolchains() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment