# Targets below will be added to the WORKSPACE file for
# all tests in this folder
local_repository(
    name = "bazel_toolchains",
    path = "../",
)

load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")

rbe_autoconfig(
    name = "rbe_jdk11",
    java_home = "/usr/lib/jvm/11.29.3-ca-jdk11.0.2/reduced",
    use_checked_in_confs = "Force",
)

rbe_autoconfig(
    name = "rbe_msan",
    env = {
        "ABI_LIBC_VERSION": "glibc_2.19",
        "ABI_VERSION": "clang",
        "BAZEL_COMPILER": "clang",
        "BAZEL_HOST_SYSTEM": "i686-unknown-linux-gnu",
        "BAZEL_LINKOPTS": "-lc++:-lc++abi:-lm",
        "BAZEL_TARGET_CPU": "k8",
        "BAZEL_TARGET_LIBC": "glibc_2.19",
        "BAZEL_TARGET_SYSTEM": "x86_64-unknown-linux-gnu",
        "CC": "clang",
        "CC_TOOLCHAIN_NAME": "linux_gnu_x86",
    },
)

