From 562fd85dfbc3f7c056ca5a6e1d2c07863fbbf304 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Sat, 8 Jun 2024 11:05:14 -0700 Subject: [PATCH] fix broken downstream builds --- src/flexilib_build.zig | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/flexilib_build.zig b/src/flexilib_build.zig index 484610c..150a170 100644 --- a/src/flexilib_build.zig +++ b/src/flexilib_build.zig @@ -8,13 +8,15 @@ pub fn configureBuild(b: *std.Build, cs: *std.Build.Step.Compile, universal_lamb const lib = b.addSharedLibrary(.{ .name = cs.name, - .root_source_file = b.path(b.pathJoin(&[_][]const u8{ - // root path comes from our dependency, which should be us, - // and if it's not, we'll just blow up here but it's not our fault ;-) - universal_lambda_zig_dep.builder.build_root.path.?, - "src", - "flexilib.zig", - })), + .root_source_file = .{ + .cwd_relative = b.pathJoin(&[_][]const u8{ + // root path comes from our dependency, which should be us, + // and if it's not, we'll just blow up here but it's not our fault ;-) + universal_lambda_zig_dep.builder.build_root.path.?, + "src", + "flexilib.zig", + }), + }, .target = cs.root_module.resolved_target.?, .optimize = cs.root_module.optimize.?, });