Skip to content

Instantly share code, notes, and snippets.

@sayrer
Created March 29, 2021 21:39
Show Gist options
  • Save sayrer/6b62c1e5385c4961635e3aedee90b6e1 to your computer and use it in GitHub Desktop.
Save sayrer/6b62c1e5385c4961635e3aedee90b6e1 to your computer and use it in GitHub Desktop.
Loading Grail's llvm_toolchain with a Chromium sysroot
# 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