mirror of
https://github.com/zoriya/zig-wayland.git
synced 2025-12-06 07:06:12 +00:00
Use build.run instead of build.exec
This commit is contained in:
@@ -84,11 +84,11 @@ pub const Scanner = struct {
|
|||||||
|
|
||||||
pub fn create(b: *Build, options: Options) *Scanner {
|
pub fn create(b: *Build, options: Options) *Scanner {
|
||||||
const wayland_xml_path = options.wayland_xml_path orelse blk: {
|
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" });
|
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 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);
|
break :blk mem.trim(u8, pc_output, &std.ascii.whitespace);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user