diff options
| author | Takeshi Yoneda <takeshi@tetrate.io> | 2021-08-13 21:49:52 +0900 |
|---|---|---|
| committer | Takeshi Yoneda <takeshi@tetrate.io> | 2021-08-13 21:49:52 +0900 |
| commit | ca4898c0f3590832d7a2ef84e8f4906e89d7f34e (patch) | |
| tree | 83320bf6654b50b0b03dd1f7a33e123aedf8aa17 /lib/std/testing.zig | |
| parent | 97560cd915008f04addc2c30af087aa89c162b02 (diff) | |
| download | zig-ca4898c0f3590832d7a2ef84e8f4906e89d7f34e.tar.gz zig-ca4898c0f3590832d7a2ef84e8f4906e89d7f34e.zip | |
Use std.buuiltin instead of importing builtin
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Diffstat (limited to 'lib/std/testing.zig')
| -rw-r--r-- | lib/std/testing.zig | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/testing.zig b/lib/std/testing.zig index fbf089a97e..3323ee239b 100644 --- a/lib/std/testing.zig +++ b/lib/std/testing.zig @@ -4,7 +4,6 @@ // The MIT license requires this copyright notice to be included in all copies // and substantial portions of the software. const std = @import("std.zig"); -const builtin = @import("builtin"); const math = std.math; const print = std.debug.print; @@ -328,7 +327,7 @@ pub const TmpDir = struct { }; fn getCwdOrWasiPreopen() std.fs.Dir { - if (std.builtin.os.tag == .wasi and !builtin.link_libc) { + if (std.builtin.os.tag == .wasi and !std.builtin.link_libc) { var preopens = std.fs.wasi.PreopenList.init(allocator); defer preopens.deinit(); preopens.populate() catch |
