BUILD 1013 B

12345678910111213141516171819202122232425262728293031323334353637
  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("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
  5. package(default_visibility = [
  6. "//explorer:__pkg__",
  7. "//explorer/fuzzing:__pkg__",
  8. ])
  9. cc_library(
  10. name = "parse_and_execute",
  11. srcs = ["parse_and_execute.cpp"],
  12. hdrs = ["parse_and_execute.h"],
  13. deps = [
  14. "//common:check",
  15. "//common:error",
  16. "//explorer/base:trace_stream",
  17. "//explorer/interpreter:exec_program",
  18. "//explorer/interpreter:stack_space",
  19. "//explorer/syntax",
  20. "//explorer/syntax:prelude",
  21. "@llvm-project//llvm:Support",
  22. ],
  23. )
  24. cc_test(
  25. name = "parse_and_execute_test",
  26. size = "small",
  27. srcs = ["parse_and_execute_test.cpp"],
  28. deps = [
  29. ":parse_and_execute",
  30. "//testing/base:gtest_main",
  31. "@com_google_googletest//:gtest",
  32. ],
  33. )