BUILD 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. load("@mypy_integration//:mypy.bzl", "mypy_test")
  5. package(default_visibility = [
  6. "//bazel/check_deps:__pkg__",
  7. "//executable_semantics:__subpackages__",
  8. ])
  9. cc_binary(
  10. name = "executable_semantics",
  11. srcs = ["main.cpp"],
  12. data = ["data/prelude.carbon"],
  13. deps = [
  14. "//executable_semantics/common:arena",
  15. "//executable_semantics/common:nonnull",
  16. "//executable_semantics/interpreter:exec_program",
  17. "//executable_semantics/syntax",
  18. "@llvm-project//llvm:Support",
  19. ],
  20. )
  21. py_binary(
  22. name = "gen_rtti",
  23. srcs = ["gen_rtti.py"],
  24. )
  25. # This script should be run directly; the target is only provided for the
  26. # mypy_test.
  27. py_binary(
  28. name = "update_checks_mypy_wrapper",
  29. srcs = ["update_checks.py"],
  30. main = "update_checks.py",
  31. )
  32. mypy_test(
  33. name = "update_checks_mypy_test",
  34. include_imports = True,
  35. deps = [":update_checks_mypy_wrapper"],
  36. )