BUILD 1.4 KB

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