all: update to use latest Zig master APIs (#521)
Co-authored-by: Scott Johnson <scott.johnson@furniturerow.com>
This commit is contained in:
parent
73efe2f5cb
commit
3b15e261a4
1 changed files with 2 additions and 2 deletions
|
@ -64,7 +64,7 @@ pub const Options = struct {
|
|||
};
|
||||
|
||||
pub fn include(b: *Builder, step: *std.build.LibExeObjStep, options: Options) void {
|
||||
const target = (std.zig.system.NativeTargetInfo.detect(b.allocator, step.target) catch unreachable).target;
|
||||
const target = (std.zig.system.NativeTargetInfo.detect(step.target) catch unreachable).target;
|
||||
switch (target.os.tag) {
|
||||
.windows => includeSdkWindowsX8664(b, step, options),
|
||||
.macos => includeSdkMacOS(b, step, options),
|
||||
|
@ -76,7 +76,7 @@ pub fn include(b: *Builder, step: *std.build.LibExeObjStep, options: Options) vo
|
|||
}
|
||||
|
||||
fn includeSdkMacOS(b: *Builder, step: *std.build.LibExeObjStep, options: Options) void {
|
||||
const target = (std.zig.system.NativeTargetInfo.detect(b.allocator, step.target) catch unreachable).target;
|
||||
const target = (std.zig.system.NativeTargetInfo.detect(step.target) catch unreachable).target;
|
||||
const mac_12 = target.os.version_range.semver.isAtLeast(.{ .major = 12, .minor = 0 }) orelse false;
|
||||
const sdk_name = if (mac_12) options.macos_sdk_12 else options.macos_sdk_11;
|
||||
const sdk_revision = if (mac_12) options.macos_sdk_12_revision else options.macos_sdk_11_revision;
|
||||
|
|
Loading…
Add table
Reference in a new issue