Merge remote-tracking branch 'origin/master' into llvm14

This commit is contained in:
Andrew Kelley 2022-07-03 22:27:21 -07:00
commit 6db190cf70
3 changed files with 17 additions and 8 deletions

View File

@ -3222,16 +3222,21 @@ pub const epoll_data = extern union {
@"u64": u64,
};
// On x86_64 the structure is packed so that it matches the definition of its
// 32bit counterpart
pub const epoll_event = switch (native_arch) {
.x86_64 => packed struct {
events: u32,
data: epoll_data,
pub const epoll_event = switch (builtin.zig_backend) {
// stage1 crashes with the align(4) field so we have this workaround
.stage1 => switch (native_arch) {
.x86_64 => packed struct {
events: u32,
data: epoll_data,
},
else => extern struct {
events: u32,
data: epoll_data,
},
},
else => extern struct {
events: u32,
data: epoll_data,
data: epoll_data align(4),
},
};

View File

@ -1991,7 +1991,7 @@ flagpsl("MT"),
.{
.name = "verbose",
.syntax = .flag,
.zig_equivalent = .other,
.zig_equivalent = .verbose,
.pd1 = false,
.pd2 = true,
.psl = false,

View File

@ -272,6 +272,10 @@ const known_options = [_]KnownOpt{
.name = "v",
.ident = "verbose",
},
.{
.name = "verbose",
.ident = "verbose",
},
.{
.name = "L",
.ident = "lib_dir",