diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-08-21 16:07:28 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-08-21 16:07:28 -0400 |
| commit | 51852d2587b931767a12d42ce39d5c191eea10ea (patch) | |
| tree | fd875c1aa365a8264510eb4c43f874c438a6036d /std/build.zig | |
| parent | bda5539e9d8b5f15b8165393e4118c8601188276 (diff) | |
| download | zig-51852d2587b931767a12d42ce39d5c191eea10ea.tar.gz zig-51852d2587b931767a12d42ce39d5c191eea10ea.zip | |
fix windows
Diffstat (limited to 'std/build.zig')
| -rw-r--r-- | std/build.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/build.zig b/std/build.zig index bc14c29dee..5300a20e17 100644 --- a/std/build.zig +++ b/std/build.zig @@ -267,7 +267,7 @@ pub const Builder = struct { if (self.verbose) { warn("rm {}\n", installed_file); } - _ = os.deleteFile(self.allocator, installed_file); + _ = os.deleteFile(installed_file); } // TODO remove empty directories @@ -1182,7 +1182,7 @@ pub const LibExeObjStep = struct { if (self.build_options_contents.len() > 0) { const build_options_file = try os.path.join(builder.allocator, builder.cache_root, builder.fmt("{}_build_options.zig", self.name)); - try std.io.writeFile(builder.allocator, build_options_file, self.build_options_contents.toSliceConst()); + try std.io.writeFile(build_options_file, self.build_options_contents.toSliceConst()); try zig_args.append("--pkg-begin"); try zig_args.append("build_options"); try zig_args.append(builder.pathFromRoot(build_options_file)); @@ -1917,7 +1917,7 @@ pub const WriteFileStep = struct { warn("unable to make path {}: {}\n", full_path_dir, @errorName(err)); return err; }; - io.writeFile(self.builder.allocator, full_path, self.data) catch |err| { + io.writeFile(full_path, self.data) catch |err| { warn("unable to write {}: {}\n", full_path, @errorName(err)); return err; }; |
