aboutsummaryrefslogtreecommitdiff
path: root/lib/std/build.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-10-21 23:54:29 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-10-21 23:54:29 -0400
commite839250c5156d438f76e7b08e7053e9087fae77c (patch)
tree53550b0fc05c78c8594ed4c11c0f606cfc9b2437 /lib/std/build.zig
parenta5cc758036720babeb13ec8cdec68b720c6af1eb (diff)
parent064377be9aaf409bf483f512354ef22f656bf213 (diff)
downloadzig-e839250c5156d438f76e7b08e7053e9087fae77c.tar.gz
zig-e839250c5156d438f76e7b08e7053e9087fae77c.zip
Merge branch 'stratact-no-dir-allocators'
closes #2885 closes #2886 closes #2888 closes #3249
Diffstat (limited to 'lib/std/build.zig')
-rw-r--r--lib/std/build.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/build.zig b/lib/std/build.zig
index cb02c8f131..dd602ba922 100644
--- a/lib/std/build.zig
+++ b/lib/std/build.zig
@@ -331,7 +331,7 @@ pub const Builder = struct {
if (self.verbose) {
warn("rm {}\n", full_path);
}
- fs.deleteTree(self.allocator, full_path) catch {};
+ fs.deleteTree(full_path) catch {};
}
// TODO remove empty directories
@@ -2687,7 +2687,7 @@ pub const RemoveDirStep = struct {
const self = @fieldParentPtr(RemoveDirStep, "step", step);
const full_path = self.builder.pathFromRoot(self.dir_path);
- fs.deleteTree(self.builder.allocator, full_path) catch |err| {
+ fs.deleteTree(full_path) catch |err| {
warn("Unable to remove {}: {}\n", full_path, @errorName(err));
return err;
};