BUILD 807 B

12345678910111213141516171819202122232425262728
  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_rules:defs.bzl", "cc_library")
  5. package(default_visibility = ["//visibility:public"])
  6. filegroup(
  7. name = "testdata",
  8. srcs = glob(["testdata/**/*.carbon"]),
  9. )
  10. cc_library(
  11. name = "codegen",
  12. srcs = ["codegen.cpp"],
  13. hdrs = ["codegen.h"],
  14. deps = [
  15. "//common:check",
  16. "//toolchain/diagnostics:diagnostic_emitter",
  17. "//toolchain/diagnostics:file_diagnostics",
  18. "@llvm-project//llvm:Core",
  19. "@llvm-project//llvm:MC",
  20. "@llvm-project//llvm:Support",
  21. "@llvm-project//llvm:Target",
  22. "@llvm-project//llvm:TargetParser",
  23. ],
  24. )