From 63e8dd89fae48e90fbd12469c2e3ff9415b832bf Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 12 Apr 2024 14:19:55 -0700 Subject: [PATCH] update build to avoid panic in debug --- build.zig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 35e9e4a..eea8dde 100644 --- a/build.zig +++ b/build.zig @@ -172,7 +172,11 @@ pub fn build(b: *std.Build) !void { , .{b.install_prefix}); defer pkgconfig_file.close(); - b.installFile(file, "share/pkgconfig/libxev.pc"); + b.getInstallStep().dependOn(&b.addInstallFileWithDir( + .{ .path = file }, + .prefix, + "share/pkgconfig/libxev.pc", + ).step); } // Benchmarks