mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
temporary workaround for os.deleteTree not implemented for windows/mac
See #709
This commit is contained in:
parent
21e8ecbafa
commit
613c4dbf58
@ -48,7 +48,14 @@ pub fn main() -> %void {
|
||||
var toc = try genToc(allocator, &tokenizer);
|
||||
|
||||
try os.makePath(allocator, tmp_dir_name);
|
||||
defer os.deleteTree(allocator, tmp_dir_name) catch {};
|
||||
defer {
|
||||
// TODO issue #709
|
||||
// disabled to pass CI tests, but obviously we want to implement this
|
||||
// and then remove this workaround
|
||||
if (builtin.os == builtin.Os.linux) {
|
||||
os.deleteTree(allocator, tmp_dir_name) catch {};
|
||||
}
|
||||
}
|
||||
try genHtml(allocator, &tokenizer, &toc, &buffered_out_stream.stream, zig_exe);
|
||||
try buffered_out_stream.flush();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user