BUILD 774 B

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