mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
fix build on macos
This commit is contained in:
parent
b735764898
commit
5017a1d895
2 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ brew install cmake llvm@8
|
||||||
brew outdated llvm@8 || brew upgrade llvm@8
|
brew outdated llvm@8 || brew upgrade llvm@8
|
||||||
mkdir build
|
mkdir build
|
||||||
cd 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
|
make install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -887,7 +887,7 @@ pub fn Watch(comptime V: type) type {
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn addFileKEvent(self: *Self, file_path: []const u8, value: V) !?V {
|
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;
|
var resolved_path_consumed = false;
|
||||||
defer if (!resolved_path_consumed) self.channel.loop.allocator.free(resolved_path);
|
defer if (!resolved_path_consumed) self.channel.loop.allocator.free(resolved_path);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue