Port to zig 0.17.0
This commit is contained in:
5
vendor/zglfw/build.zig
vendored
5
vendor/zglfw/build.zig
vendored
@@ -28,8 +28,9 @@ pub fn build(b: *std.Build) void {
|
||||
};
|
||||
|
||||
const options_step = b.addOptions();
|
||||
inline for (std.meta.fields(@TypeOf(options))) |field| {
|
||||
options_step.addOption(field.type, field.name, @field(options, field.name));
|
||||
const options_type_info = @typeInfo(@TypeOf(options)).@"struct";
|
||||
inline for (options_type_info.field_types, options_type_info.field_names) |field_type, field_name| {
|
||||
options_step.addOption(field_type, field_name, @field(options, field_name));
|
||||
}
|
||||
|
||||
const options_module = options_step.createModule();
|
||||
|
||||
Reference in New Issue
Block a user