mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-25 12:10:10 +01:00
This should be clearer, more maintainable, and more scalable than building the prelude AST by hand.
34 lines
871 B
Python
34 lines
871 B
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/testing:lit_test.bzl", "lit_test")
|
|
|
|
package(default_visibility = [
|
|
"//bazel/check_deps:__pkg__",
|
|
"//executable_semantics:__subpackages__",
|
|
])
|
|
|
|
cc_binary(
|
|
name = "executable_semantics",
|
|
srcs = ["main.cpp"],
|
|
deps = [
|
|
"//executable_semantics/common:arena",
|
|
"//executable_semantics/common:nonnull",
|
|
"//executable_semantics/interpreter:exec_program",
|
|
"//executable_semantics/syntax",
|
|
"@llvm-project//llvm:Support",
|
|
],
|
|
)
|
|
|
|
lit_test(
|
|
name = "executable_semantics_lit_test",
|
|
test_dir = "testdata",
|
|
tools = [":executable_semantics"],
|
|
)
|
|
|
|
py_binary(
|
|
name = "gen_rtti",
|
|
srcs = ["gen_rtti.py"],
|
|
)
|