From 5017a1d895847df6cc02dc4bedd02aa341177171 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 10 Jun 2019 00:35:27 -0400 Subject: [PATCH] fix build on macos --- README.md | 2 +- std/event/fs.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 92ad435f5b..3312fa3650 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ brew install cmake llvm@8 brew outdated llvm@8 || brew upgrade llvm@8 mkdir build cd build -cmake .. -DCMAKE_PREFIX_PATH=/usr/local/Cellar/llvm/8.0.0 +cmake .. -DCMAKE_PREFIX_PATH=/usr/local/Cellar/llvm/8.0.0_1 make install ``` diff --git a/std/event/fs.zig b/std/event/fs.zig index 7a6a5861b2..b48f8723c1 100644 --- a/std/event/fs.zig +++ b/std/event/fs.zig @@ -887,7 +887,7 @@ pub fn Watch(comptime V: type) type { } async fn addFileKEvent(self: *Self, file_path: []const u8, value: V) !?V { - const resolved_path = try std.fs.path.resolve(self.channel.loop.allocator, [][]const u8{file_path}); + const resolved_path = try std.fs.path.resolve(self.channel.loop.allocator, [_][]const u8{file_path}); var resolved_path_consumed = false; defer if (!resolved_path_consumed) self.channel.loop.allocator.free(resolved_path);