mirror of
https://github.com/ziglang/zig.git
synced 2026-01-04 20:43:19 +00:00
Use std.buuiltin instead of importing builtin
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
This commit is contained in:
parent
97560cd915
commit
ca4898c0f3
@ -169,7 +169,7 @@ pub const PreopenList = struct {
|
||||
};
|
||||
|
||||
test "extracting WASI preopens" {
|
||||
if (std.builtin.os.tag != .wasi or @import("builtin").link_libc) return error.SkipZigTest;
|
||||
if (std.builtin.os.tag != .wasi or std.builtin.link_libc) return error.SkipZigTest;
|
||||
|
||||
var preopens = PreopenList.init(std.testing.allocator);
|
||||
defer preopens.deinit();
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user