code: use std.ascii.spaces
This commit is contained in:
parent
624a5c3e7a
commit
6c52f9cc2b
2 changed files with 4 additions and 8 deletions
10
build.zig
10
build.zig
|
@ -154,13 +154,9 @@ const OldScanProtocolsStep = struct {
|
||||||
fn make(step: *std.build.Step) !void {
|
fn make(step: *std.build.Step) !void {
|
||||||
const self = @fieldParentPtr(OldScanProtocolsStep, "step", step);
|
const self = @fieldParentPtr(OldScanProtocolsStep, "step", step);
|
||||||
|
|
||||||
const protocol_dir = std.mem.trim(
|
const protocol_dir = std.mem.trim(u8, try self.builder.exec(
|
||||||
u8,
|
&[_][]const u8{ "pkg-config", "--variable=pkgdatadir", "wayland-protocols" },
|
||||||
try self.builder.exec(
|
), &std.ascii.spaces);
|
||||||
&[_][]const u8{ "pkg-config", "--variable=pkgdatadir", "wayland-protocols" },
|
|
||||||
),
|
|
||||||
&[_]u8 {' ', '\t', '\n', '\r'},
|
|
||||||
);
|
|
||||||
|
|
||||||
const protocol_dir_paths = [_][]const []const u8{
|
const protocol_dir_paths = [_][]const []const u8{
|
||||||
&[_][]const u8{ protocol_dir, "stable/xdg-shell/xdg-shell.xml" },
|
&[_][]const u8{ protocol_dir, "stable/xdg-shell/xdg-shell.xml" },
|
||||||
|
|
2
deps/zig-wayland
vendored
2
deps/zig-wayland
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit d0fcd31b54c930d58267ebaf03a898c2d01ccfa4
|
Subproject commit 931b6f767b5c25280df1252982322d6eb1580aca
|
Loading…
Reference in a new issue