BUILD 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. # Running clang-tidy is slow, and explorer is currently feature frozen, so
  14. # don't spend time linting it.
  15. tags = ["no-clang-tidy"],
  16. deps = [
  17. "//common:check",
  18. "//common:error",
  19. "//explorer/base:trace_stream",
  20. "//explorer/interpreter:exec_program",
  21. "//explorer/interpreter:stack_space",
  22. "//explorer/syntax",
  23. "//explorer/syntax:prelude",
  24. "@llvm-project//llvm:Support",
  25. ],
  26. )
  27. cc_test(
  28. name = "parse_and_execute_test",
  29. size = "small",
  30. srcs = ["parse_and_execute_test.cpp"],
  31. # Running clang-tidy is slow, and explorer is currently feature frozen, so
  32. # don't spend time linting it.
  33. tags = ["no-clang-tidy"],
  34. deps = [
  35. ":parse_and_execute",
  36. "//testing/base:gtest_main",
  37. "@googletest//:gtest",
  38. ],
  39. )