BUILD 672 B

12345678910111213141516171819202122
  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. load("//bazel/cc_toolchains:defs.bzl", "cc_env")
  5. load("run_tool.bzl", "run_tool")
  6. # Support `bazel run` and create a convenience symlink for the tool in the
  7. # toolchain's install.
  8. run_tool(
  9. name = "carbon",
  10. data = ["//toolchain/install:install_data"],
  11. env = cc_env(),
  12. tool = "//toolchain/install:prefix_root/bin/carbon",
  13. )
  14. # A convenience target for running the toolchain with the full prelude
  15. # available.
  16. alias(
  17. name = "toolchain",
  18. actual = ":carbon",
  19. )