| ... | @@ -50,7 +50,7 @@ pub fn build(b: *std.Build) !void { | ... | @@ -50,7 +50,7 @@ pub fn build(b: *std.Build) !void { |
| 50 | .{ .cwd_relative = "c.txt" }, | 50 | .{ .cwd_relative = "c.txt" }, |
| 51 | }), | 51 | }), |
| 52 | .@"enum" = @as(Enum, .alfa), | 52 | .@"enum" = @as(Enum, .alfa), |
| 53 | //.enum_list = @as([]const Enum, &.{ .alfa, .bravo, .charlie }), | 53 | .enum_list = @as([]const Enum, &.{ .alfa, .bravo, .charlie }), |
| 54 | //.build_id = @as(std.zig.BuildId, .uuid), | 54 | //.build_id = @as(std.zig.BuildId, .uuid), |
| 55 | }); | 55 | }); |
| 56 | | 56 | |
| ... | @@ -75,7 +75,7 @@ pub fn build(b: *std.Build) !void { | ... | @@ -75,7 +75,7 @@ pub fn build(b: *std.Build) !void { |
| 75 | .{ .cwd_relative = "c.txt" }, | 75 | .{ .cwd_relative = "c.txt" }, |
| 76 | }), | 76 | }), |
| 77 | .@"enum" = @as(?Enum, .alfa), | 77 | .@"enum" = @as(?Enum, .alfa), |
| 78 | //.enum_list = @as(?[]const Enum, &.{ .alfa, .bravo, .charlie }), | 78 | .enum_list = @as(?[]const Enum, &.{ .alfa, .bravo, .charlie }), |
| 79 | //.build_id = @as(?std.zig.BuildId, .uuid), | 79 | //.build_id = @as(?std.zig.BuildId, .uuid), |
| 80 | }); | 80 | }); |
| 81 | | 81 | |
| ... | @@ -96,7 +96,7 @@ pub fn build(b: *std.Build) !void { | ... | @@ -96,7 +96,7 @@ pub fn build(b: *std.Build) !void { |
| 96 | .{ .cwd_relative = "c.txt" }, | 96 | .{ .cwd_relative = "c.txt" }, |
| 97 | }, | 97 | }, |
| 98 | .@"enum" = .alfa, | 98 | .@"enum" = .alfa, |
| 99 | //.enum_list = &[_]Enum{ .alfa, .bravo, .charlie }, | 99 | .enum_list = &[_]Enum{ .alfa, .bravo, .charlie }, |
| 100 | //.build_id = @as(std.zig.BuildId, .uuid), | 100 | //.build_id = @as(std.zig.BuildId, .uuid), |
| 101 | }); | 101 | }); |
| 102 | | 102 | |
| ... | @@ -114,7 +114,6 @@ pub fn build(b: *std.Build) !void { | ... | @@ -114,7 +114,6 @@ pub fn build(b: *std.Build) !void { |
| 114 | const mut_lazy_path_list: []std.Build.LazyPath = &mut_lazy_path_list_buf; | 114 | const mut_lazy_path_list: []std.Build.LazyPath = &mut_lazy_path_list_buf; |
| 115 | var mut_enum_list_buf = [_]Enum{ .alfa, .bravo, .charlie }; | 115 | var mut_enum_list_buf = [_]Enum{ .alfa, .bravo, .charlie }; |
| 116 | const mut_enum_list: []Enum = &mut_enum_list_buf; | 116 | const mut_enum_list: []Enum = &mut_enum_list_buf; |
| 117 | _ = mut_enum_list; | | |
| 118 | | 117 | |
| 119 | // Most supported option types are serialized to a string representation, | 118 | // Most supported option types are serialized to a string representation, |
| 120 | // so alternative representations of the same option value should resolve | 119 | // so alternative representations of the same option value should resolve |
| ... | @@ -130,7 +129,7 @@ pub fn build(b: *std.Build) !void { | ... | @@ -130,7 +129,7 @@ pub fn build(b: *std.Build) !void { |
| 130 | .lazy_path = @as(std.Build.LazyPath, .{ .cwd_relative = "abc.txt" }), | 129 | .lazy_path = @as(std.Build.LazyPath, .{ .cwd_relative = "abc.txt" }), |
| 131 | .lazy_path_list = mut_lazy_path_list, | 130 | .lazy_path_list = mut_lazy_path_list, |
| 132 | .@"enum" = "alfa", | 131 | .@"enum" = "alfa", |
| 133 | //.enum_list = mut_enum_list, | 132 | .enum_list = mut_enum_list, |
| 134 | //.build_id = @as(std.zig.BuildId, .uuid), | 133 | //.build_id = @as(std.zig.BuildId, .uuid), |
| 135 | }); | 134 | }); |
| 136 | | 135 | |