build.zig 549 B

1234567891011121314151617181920212223
  1. const std = @import("std");
  2. pub fn build(b: *std.Build) void {
  3. const exe1 = b.addExecutable(.{
  4. .name = "day1a",
  5. .root_module = b.createModule(.{
  6. .root_source_file = b.path("day1a.zig"),
  7. .target = b.graph.host,
  8. }),
  9. });
  10. b.installArtifact(exe1);
  11. const exe2 = b.addExecutable(.{
  12. .name = "day1b",
  13. .root_module = b.createModule(.{
  14. .root_source_file = b.path("day1b.zig"),
  15. .target = b.graph.host,
  16. }),
  17. });
  18. b.installArtifact(exe2);
  19. }