install.MODULE.bazel 819 B

1234567891011121314151617181920212223
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. """Carbon toolchain Bazel module.
  5. This module exposes Bazel `cc_toolchain`s built from this Carbon toolchain.
  6. Add the repository to your `MODULES.bazel` and then use
  7. `register_toolchains("@carbon_toolchain//:all")` to get these toolchains. For
  8. more detailed examples, see the Carbon project examples in examples/bazel
  9. """
  10. module(name = "carbon_toolchain")
  11. bazel_dep(name = "rules_cc", version = "0.1.4")
  12. bazel_dep(name = "platforms", version = "1.0.0")
  13. carbon_toolchain_config = use_extension(
  14. "//bazel:carbon_toolchain.bzl",
  15. "carbon_toolchain_config",
  16. )
  17. use_repo(carbon_toolchain_config, "carbon_toolchain_config")