From 4a91d9dc7d1ac2f01f8401d4aa56f2e6f880d581 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Fri, 22 Dec 2023 20:38:25 +0100 Subject: [PATCH] Use build.run instead of build.exec --- build.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index f7fc29e..8fc8966 100644 --- a/build.zig +++ b/build.zig @@ -84,11 +84,11 @@ pub const Scanner = struct { pub fn create(b: *Build, options: Options) *Scanner { const wayland_xml_path = options.wayland_xml_path orelse blk: { - const pc_output = b.exec(&.{ "pkg-config", "--variable=pkgdatadir", "wayland-scanner" }); + const pc_output = b.run(&.{ "pkg-config", "--variable=pkgdatadir", "wayland-scanner" }); break :blk b.pathJoin(&.{ mem.trim(u8, pc_output, &std.ascii.whitespace), "wayland.xml" }); }; const wayland_protocols_path = options.wayland_protocols_path orelse blk: { - const pc_output = b.exec(&.{ "pkg-config", "--variable=pkgdatadir", "wayland-protocols" }); + const pc_output = b.run(&.{ "pkg-config", "--variable=pkgdatadir", "wayland-protocols" }); break :blk mem.trim(u8, pc_output, &std.ascii.whitespace); };