BUILD 1.2 KB

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