BUILD 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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("//bazel/testing:lit_test.bzl", "lit_test")
  5. load("@mypy_integration//:mypy.bzl", "mypy_test")
  6. package(default_visibility = [
  7. "//bazel/check_deps:__pkg__",
  8. "//executable_semantics:__subpackages__",
  9. ])
  10. cc_binary(
  11. name = "executable_semantics",
  12. srcs = ["main.cpp"],
  13. data = ["data/prelude.carbon"],
  14. deps = [
  15. "//executable_semantics/common:arena",
  16. "//executable_semantics/common:nonnull",
  17. "//executable_semantics/interpreter:exec_program",
  18. "//executable_semantics/syntax",
  19. "@llvm-project//llvm:Support",
  20. ],
  21. )
  22. lit_test(
  23. name = "executable_semantics_lit_test",
  24. data = [
  25. ":executable_semantics",
  26. "@llvm-project//llvm:FileCheck",
  27. "@llvm-project//llvm:not",
  28. ],
  29. test_dir = "testdata",
  30. )
  31. py_binary(
  32. name = "gen_rtti",
  33. srcs = ["gen_rtti.py"],
  34. )
  35. # This script should be run directly; the target is only provided for the
  36. # mypy_test.
  37. py_binary(
  38. name = "update_checks_mypy_wrapper",
  39. srcs = ["update_checks.py"],
  40. main = "update_checks.py",
  41. )
  42. mypy_test(
  43. name = "update_checks_mypy_test",
  44. include_imports = True,
  45. deps = [":update_checks_mypy_wrapper"],
  46. )