| ... | @@ -4,7 +4,6 @@ | ... | @@ -4,7 +4,6 @@ |
| 4 | // The MIT license requires this copyright notice to be included in all copies | 4 | // The MIT license requires this copyright notice to be included in all copies |
| 5 | // and substantial portions of the software. | 5 | // and substantial portions of the software. |
| 6 | const std = @import("std.zig"); | 6 | const std = @import("std.zig"); |
| 7 | const builtin = @import("builtin"); | | |
| 8 | | 7 | |
| 9 | const math = std.math; | 8 | const math = std.math; |
| 10 | const print = std.debug.print; | 9 | const print = std.debug.print; |
| ... | @@ -328,7 +327,7 @@ pub const TmpDir = struct { | ... | @@ -328,7 +327,7 @@ pub const TmpDir = struct { |
| 328 | }; | 327 | }; |
| 329 | | 328 | |
| 330 | fn getCwdOrWasiPreopen() std.fs.Dir { | 329 | fn getCwdOrWasiPreopen() std.fs.Dir { |
| 331 | if (std.builtin.os.tag == .wasi and !builtin.link_libc) { | 330 | if (std.builtin.os.tag == .wasi and !std.builtin.link_libc) { |
| 332 | var preopens = std.fs.wasi.PreopenList.init(allocator); | 331 | var preopens = std.fs.wasi.PreopenList.init(allocator); |
| 333 | defer preopens.deinit(); | 332 | defer preopens.deinit(); |
| 334 | preopens.populate() catch | 333 | preopens.populate() catch |