temporary workaround for os.deleteTree not implemented for windows/mac

See #709
This commit is contained in:
Andrew Kelley 2018-01-19 15:51:37 -05:00
parent 21e8ecbafa
commit 613c4dbf58

View File

@ -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();
}