mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-29 06:55:00 +01:00
This keeps all of our C++ code written in C++ source files, and avoids the increasing size of the RTTI generation script we'd started to see in #2699. Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
44 lines
1.0 KiB
Python
44 lines
1.0 KiB
Python
# 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/interpreter:trace_stream",
|
|
"//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",
|
|
],
|
|
)
|