std.Build.Step.ConfigHeader: permit inserting enum values

This commit is contained in:
Techatrix
2025-02-19 09:33:56 +01:00
parent 344db9e26b
commit c1c6f08296
4 changed files with 4 additions and 1 deletions

View File

@@ -131,7 +131,7 @@ fn putValue(config_header: *ConfigHeader, field_name: []const u8, comptime T: ty
.comptime_int => {
try config_header.values.put(field_name, .{ .int = v });
},
.enum_literal => {
.@"enum", .enum_literal => {
try config_header.values.put(field_name, .{ .ident = @tagName(v) });
},
.optional => {