Files
carbon-lang/executable_semantics/BUILD
T
Jon Meow b4852b04d2 Make bazel run use the build working dir (#1198)
╚╡bazel run :executable_semantics -- testdata/basic_syntax/print.carbon
INFO: Invocation ID: e7820b06-f118-45c7-afdb-b3a3f526ffcf
INFO: Analyzed target //executable_semantics:executable_semantics (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //executable_semantics:executable_semantics up-to-date:
bazel-bin/executable_semantics/executable_semantics
INFO: Elapsed time: 0.466s, Critical Path: 0.01s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Running command line: bazel-bin/executable_semantics/executable_semantics
INFO: Build completed successfully, 1 total action
Hello world!
result: 0
2022-04-20 10:09:52 -07:00

60 lines
1.4 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("@mypy_integration//:mypy.bzl", "mypy_test")
package(default_visibility = [
"//bazel/check_deps:__pkg__",
"//executable_semantics:__subpackages__",
"//installers:__subpackages__",
])
filegroup(
name = "standard_libraries",
srcs = ["data/prelude.carbon"],
)
cc_library(
name = "main",
srcs = ["main.cpp"],
hdrs = ["main.h"],
deps = [
"//common:error",
"//executable_semantics/common:arena",
"//executable_semantics/common:nonnull",
"//executable_semantics/interpreter:exec_program",
"//executable_semantics/syntax",
"//executable_semantics/syntax:prelude",
"@llvm-project//llvm:Support",
],
)
cc_binary(
name = "executable_semantics",
srcs = ["main_bin.cpp"],
deps = [
":main",
"@llvm-project//llvm:Support",
],
)
py_binary(
name = "gen_rtti",
srcs = ["gen_rtti.py"],
)
# This script should be run directly; the target is only provided for the
# mypy_test.
py_binary(
name = "update_checks_mypy_wrapper",
srcs = ["update_checks.py"],
main = "update_checks.py",
)
mypy_test(
name = "update_checks_mypy_test",
include_imports = True,
deps = [":update_checks_mypy_wrapper"],
)