forked from carbon-language/carbon-lang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
47 lines (41 loc) · 1.05 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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")
package(default_visibility = [
"//bazel/check_deps:__pkg__",
"//explorer:__subpackages__",
"//installers:__subpackages__",
])
filegroup(
name = "standard_libraries",
srcs = ["data/prelude.carbon"],
)
cc_library(
name = "main",
srcs = ["main.cpp"],
hdrs = ["main.h"],
deps = [
"//common:error",
"//explorer/common:arena",
"//explorer/common:nonnull",
"//explorer/interpreter:exec_program",
"//explorer/syntax",
"//explorer/syntax:prelude",
"@llvm-project//llvm:Support",
],
)
cc_binary(
name = "explorer",
srcs = ["main_bin.cpp"],
env = cc_env(),
deps = [
":main",
"//common:bazel_working_dir",
"@llvm-project//llvm:Support",
],
)
py_binary(
name = "gen_rtti",
srcs = ["gen_rtti.py"],
)