2021-02-16 15:41:58 +00:00
|
|
|
"""A module defining the various toolchain definitions for `rules_foreign_cc`"""
|
|
|
|
|
2021-03-02 16:32:31 +00:00
|
|
|
load(":built_toolchains.bzl", _built_toolchains = "built_toolchains")
|
2021-02-16 15:41:58 +00:00
|
|
|
load(":prebuilt_toolchains.bzl", _prebuilt_toolchains = "prebuilt_toolchains")
|
|
|
|
|
2021-03-02 16:32:31 +00:00
|
|
|
# Re-expose the built toolchains macro
|
|
|
|
built_toolchains = _built_toolchains
|
|
|
|
|
2021-02-16 15:41:58 +00:00
|
|
|
# Re-expose the prebuilt toolchains macro
|
|
|
|
prebuilt_toolchains = _prebuilt_toolchains
|
|
|
|
|
|
|
|
# buildifier: disable=unnamed-macro
|
|
|
|
def preinstalled_toolchains():
|
|
|
|
"""Register toolchains for various build tools expected to be installed on the exec host"""
|
|
|
|
native.register_toolchains(
|
2021-07-18 19:46:46 +00:00
|
|
|
str(Label("//toolchains:preinstalled_cmake_toolchain")),
|
|
|
|
str(Label("//toolchains:preinstalled_make_toolchain")),
|
|
|
|
str(Label("//toolchains:preinstalled_ninja_toolchain")),
|
2021-02-16 15:41:58 +00:00
|
|
|
)
|