forked from carbon-language/carbon-lang
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
22 lines (19 loc) · 672 Bytes
/
BUILD
File metadata and controls
22 lines (19 loc) · 672 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
# Exceptions. See /LICENSE for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
load("//bazel/cc_toolchains:defs.bzl", "cc_env")
load("run_tool.bzl", "run_tool")
# Support `bazel run` and create a convenience symlink for the tool in the
# toolchain's install.
run_tool(
name = "carbon",
data = ["//toolchain/install:install_data"],
env = cc_env(),
tool = "//toolchain/install:prefix_root/bin/carbon",
)
# A convenience target for running the toolchain with the full prelude
# available.
alias(
name = "toolchain",
actual = ":carbon",
)