BUILD 837 B

1234567891011121314151617181920212223242526272829
  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/carbon_rules:defs.bzl", "carbon_binary")
  5. utils = [
  6. "io_utils.carbon",
  7. "sort.carbon",
  8. ]
  9. # A list of examples that should be excluded because they don't build any more.
  10. # For example, to exclude day3_part2, use:
  11. # excluded = [(3, 2)]
  12. excluded = []
  13. # Produce a binary "dayX_partY" for each matching `.carbon` file.
  14. [
  15. carbon_binary(
  16. name = "day{0}_part{1}".format(day, part),
  17. srcs = [
  18. "day{0}_common.carbon".format(day),
  19. "day{0}_part{1}.carbon".format(day, part),
  20. ] + utils,
  21. )
  22. for day in range(1, 14)
  23. for part in range(1, 3)
  24. if (day, part) not in excluded
  25. ]