BUILD 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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/syntax",
  24. "//explorer/syntax:prelude",
  25. "@llvm-project//llvm:Support",
  26. ],
  27. )
  28. cc_binary(
  29. name = "explorer",
  30. srcs = ["main_bin.cpp"],
  31. env = cc_env(),
  32. deps = [
  33. ":main",
  34. "//common:bazel_working_dir",
  35. "@llvm-project//llvm:Support",
  36. ],
  37. )
  38. py_binary(
  39. name = "gen_rtti",
  40. srcs = ["gen_rtti.py"],
  41. )