glfw: update to latest Zig build API

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
avokadoen 2023-02-07 19:19:47 +01:00 committed by Stephen Gutekanst
parent 3d769b9671
commit 06cc7b3115
4 changed files with 47 additions and 38 deletions

View file

@ -30,7 +30,7 @@
//! version: Mar 4, 2022
const std = @import("std");
const Builder = std.build.Builder;
const Build = std.Build;
pub const Options = struct {
pub const Sdk = struct {
@ -123,7 +123,7 @@ pub const Options = struct {
set_sysroot: bool = false,
};
pub fn include(b: *Builder, step: *std.build.LibExeObjStep, options: Options) void {
pub fn include(b: *Build, step: *std.build.CompileStep, options: Options) void {
const target = step.target_info.target;
// var best_sdk: ?Options.Sdk = null;
for (options.sdk_list) |sdk| {