2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-11-25 17:31:25 +00:00
rules_foreign_cc/toolchains_examples/WORKSPACE
2021-02-03 12:54:23 -08:00

20 lines
779 B
Python

workspace(name = "rules_foreign_cc_toolchains_examples")
local_repository(
name = "rules_foreign_cc",
path = "..",
)
load("@rules_foreign_cc//:workspace_definitions.bzl", "rules_foreign_cc_dependencies")
load(":additional_toolchains.bzl", "ADD_TOOLCHAIN_MAPPINGS")
# We are registering additional shell toolchain implementation for fancy_platform.
# The target of the type "toolchain" will be created in the root package of the current workspace,
# so we are passing this value as additonal_shell_toolchain_package.
rules_foreign_cc_dependencies(
additional_shell_toolchain_mappings = ADD_TOOLCHAIN_MAPPINGS,
additional_shell_toolchain_package = "@rules_foreign_cc_toolchains_examples//",
native_tools_toolchains = [],
register_default_tools = True,
)