BUILD 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. filegroup(
  10. name = "standard_libraries",
  11. srcs = ["data/prelude.carbon"],
  12. )
  13. cc_binary(
  14. name = "executable_semantics",
  15. srcs = ["main.cpp"],
  16. data = [":standard_libraries"],
  17. deps = [
  18. "//common:error",
  19. "//executable_semantics/common:arena",
  20. "//executable_semantics/common:nonnull",
  21. "//executable_semantics/interpreter:exec_program",
  22. "//executable_semantics/syntax",
  23. "@llvm-project//llvm:Support",
  24. ],
  25. )
  26. py_binary(
  27. name = "gen_rtti",
  28. srcs = ["gen_rtti.py"],
  29. )
  30. # This script should be run directly; the target is only provided for the
  31. # mypy_test.
  32. py_binary(
  33. name = "update_checks_mypy_wrapper",
  34. srcs = ["update_checks.py"],
  35. main = "update_checks.py",
  36. )
  37. mypy_test(
  38. name = "update_checks_mypy_test",
  39. include_imports = True,
  40. deps = [":update_checks_mypy_wrapper"],
  41. )