this empty import workaround no longer necessary

master
Andrew Kelley 2019-03-13 13:45:51 -04:00
parent 0588fed15f
commit d213708333
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
4 changed files with 1 additions and 5 deletions

View File

@ -476,7 +476,6 @@ set(ZIG_STD_FILES
"dwarf.zig"
"dynamic_library.zig"
"elf.zig"
"empty.zig"
"event.zig"
"event/channel.zig"
"event/fs.zig"

View File

@ -7,9 +7,8 @@ pub use switch (builtin.os) {
Os.macosx, Os.ios => @import("c/darwin.zig"),
Os.freebsd => @import("c/freebsd.zig"),
Os.netbsd => @import("c/netbsd.zig"),
else => empty_import,
else => struct {},
};
const empty_import = @import("empty.zig");
// TODO https://github.com/ziglang/zig/issues/265 on this whole file

View File

View File

@ -24,7 +24,6 @@ pub const cstr = @import("cstr.zig");
pub const debug = @import("debug.zig");
pub const dwarf = @import("dwarf.zig");
pub const elf = @import("elf.zig");
pub const empty_import = @import("empty.zig");
pub const event = @import("event.zig");
pub const fmt = @import("fmt.zig");
pub const hash = @import("hash.zig");
@ -72,7 +71,6 @@ test "std" {
_ = @import("dwarf.zig");
_ = @import("dynamic_library.zig");
_ = @import("elf.zig");
_ = @import("empty.zig");
_ = @import("event.zig");
_ = @import("fmt.zig");
_ = @import("hash.zig");