From a38ea61ceff48f210b392f5df581865eddae5883 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Thu, 1 Feb 2024 21:07:28 -0700 Subject: [PATCH] addPaths(step) -> addPaths(mod); helps hexops/mach#1154 Signed-off-by: Stephen Gutekanst --- build.zig | 14 ++------------ build.zig.zon | 4 ++-- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/build.zig b/build.zig index 43c6ecbe..78a5dd7f 100644 --- a/build.zig +++ b/build.zig @@ -30,7 +30,7 @@ pub fn build(b: *std.Build) void { .target = target, .optimize = optimize, }); - addPaths(main_tests); + sysaudio.addPaths(&main_tests.root_module); b.installArtifact(main_tests); const test_step = b.step("test", "Run library tests"); @@ -44,7 +44,7 @@ pub fn build(b: *std.Build) void { }); example.root_module.addImport("mach-opus", module); example.root_module.addImport("mach-sysaudio", sysaudio_dep.module("mach-sysaudio")); - addPaths(example); + sysaudio.addPaths(&example.root_module); b.installArtifact(example); const example_run_cmd = b.addRunArtifact(example); @@ -53,13 +53,3 @@ pub fn build(b: *std.Build) void { const example_run_step = b.step("run-example", "Run example"); example_run_step.dependOn(&example_run_cmd.step); } - -pub fn addPaths(step: *std.Build.Step.Compile) void { - sysaudio.addPaths(step); -} - -pub fn link(b: *std.Build, step: *std.Build.Step.Compile) void { - _ = b; - _ = step; - @panic("link(b, step) has been deprecated, use addPaths(step) instead"); -} diff --git a/build.zig.zon b/build.zig.zon index e6532664..af92b540 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -21,8 +21,8 @@ .hash = "12205b82e9375d940b78e8c7df0b84bd1015c9a8c5b2a6b6ff2c21454a2763ef7aa6", }, .mach_sysaudio = .{ - .url = "https://pkg.machengine.org/mach-sysaudio/8e4d73150af291d63a5390b157552ce0bbcd4a1d.tar.gz", - .hash = "12206c2ca0378bbc54721553e8167c037325e95e2791379fbe0e245a34334679dc90", + .url = "https://pkg.machengine.org/mach-sysaudio/ce8ab30dd300b822224d14997c58c06520b642c9.tar.gz", + .hash = "12203f0d4afc83bae8571434ff48a459732c15c9542df13e0a97baedc73212d355a1", }, .linux_audio_headers = .{ .url = "https://pkg.machengine.org/linux-audio-headers/302c41dc4ab5fa292c3062e9e0d26c7f62652740.tar.gz",