install.MODULE.bazel 872 B

123456789101112131415161718192021222324
  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.2.17")
  12. bazel_dep(name = "platforms", version = "1.0.0")
  13. bazel_dep(name = "bazel_skylib", version = "1.9.0")
  14. carbon_toolchain_config = use_extension(
  15. "//bazel:carbon_toolchain.bzl",
  16. "carbon_toolchain_config",
  17. )
  18. use_repo(carbon_toolchain_config, "carbon_toolchain_config")