clang_toolchain.BUILD 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. # This file is symlinked into a configured Clang toolchain repository as the
  5. # root `BUILD` file for that repository.
  6. load("@rules_cc//cc:defs.bzl", "cc_library", "cc_toolchain", "cc_toolchain_suite")
  7. load(":cc_toolchain_config.bzl", "cc_toolchain_config")
  8. cc_library(
  9. name = "malloc",
  10. )
  11. filegroup(
  12. name = "empty",
  13. srcs = [],
  14. )
  15. cc_toolchain_suite(
  16. name = "bazel_cc_toolchain",
  17. toolchains = {
  18. "k8": ":cc-compiler-k8",
  19. },
  20. )
  21. cc_toolchain(
  22. name = "cc-compiler-k8",
  23. all_files = ":empty",
  24. ar_files = ":empty",
  25. as_files = ":empty",
  26. compiler_files = ":empty",
  27. dwp_files = ":empty",
  28. linker_files = ":empty",
  29. objcopy_files = ":empty",
  30. strip_files = ":empty",
  31. supports_param_files = 1,
  32. toolchain_config = ":local",
  33. toolchain_identifier = "local",
  34. )
  35. cc_toolchain_config(
  36. name = "local",
  37. )