BUILD 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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("//bazel/cc_toolchains:defs.bzl", "cc_env")
  5. package(default_visibility = [
  6. "//bazel/check_deps:__pkg__",
  7. "//explorer:__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. "//explorer/common:arena",
  21. "//explorer/common:nonnull",
  22. "//explorer/interpreter:exec_program",
  23. "//explorer/interpreter:trace_stream",
  24. "//explorer/syntax",
  25. "//explorer/syntax:prelude",
  26. "@llvm-project//llvm:Support",
  27. ],
  28. )
  29. cc_binary(
  30. name = "explorer",
  31. srcs = ["main_bin.cpp"],
  32. env = cc_env(),
  33. deps = [
  34. ":main",
  35. "//common:bazel_working_dir",
  36. "@llvm-project//llvm:Support",
  37. ],
  38. )
  39. py_binary(
  40. name = "gen_rtti",
  41. srcs = ["gen_rtti.py"],
  42. )