BUILD 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. "@llvm-project//llvm:Support",
  34. ],
  35. )
  36. py_binary(
  37. name = "gen_rtti",
  38. srcs = ["gen_rtti.py"],
  39. )
  40. # This script should be run directly; the target is only provided for the
  41. # mypy_test.
  42. py_binary(
  43. name = "update_checks_mypy_wrapper",
  44. srcs = ["update_checks.py"],
  45. main = "update_checks.py",
  46. )
  47. mypy_test(
  48. name = "update_checks_mypy_test",
  49. include_imports = True,
  50. deps = [":update_checks_mypy_wrapper"],
  51. )