authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-04-15 19:12:39-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-04-15 19:14:54-07:00
log7818586a2bc24252468977f8304d3c5b870a932a
tree3e8c13cfef2a695b70414ae8cf6c5bd5b9c4cad1
parentf37451a63ab084853c76cb1359e081363ff15f14

fix new references to std.builtin that should have been std.Target


2 files changed, 5 insertions(+), 5 deletions(-)

lib/std/special/compiler_rt.zig+1-1
...@@ -299,7 +299,7 @@ comptime {...@@ -299,7 +299,7 @@ comptime {
299 @export(@import("compiler_rt/sparc.zig")._Qp_qtod, .{ .name = "_Qp_qtod", .linkage = linkage });299 @export(@import("compiler_rt/sparc.zig")._Qp_qtod, .{ .name = "_Qp_qtod", .linkage = linkage });
300 }300 }
301301
302 if (builtin.arch == .powerpc or builtin.arch.isPPC64()) {302 if (arch == .powerpc or arch.isPPC64()) {
303 @export(@import("compiler_rt/addXf3.zig").__addtf3, .{ .name = "__addkf3", .linkage = linkage });303 @export(@import("compiler_rt/addXf3.zig").__addtf3, .{ .name = "__addkf3", .linkage = linkage });
304 @export(@import("compiler_rt/addXf3.zig").__subtf3, .{ .name = "__subkf3", .linkage = linkage });304 @export(@import("compiler_rt/addXf3.zig").__subtf3, .{ .name = "__subkf3", .linkage = linkage });
305 @export(@import("compiler_rt/mulXf3.zig").__multf3, .{ .name = "__mulkf3", .linkage = linkage });305 @export(@import("compiler_rt/mulXf3.zig").__multf3, .{ .name = "__mulkf3", .linkage = linkage });
test/tests.zig+4-4
...@@ -571,11 +571,11 @@ pub const StackTracesContext = struct {...@@ -571,11 +571,11 @@ pub const StackTracesContext = struct {
571 if (config.exclude.exclude()) return;571 if (config.exclude.exclude()) return;
572 }572 }
573 if (@hasField(@TypeOf(config), "exclude_arch")) {573 if (@hasField(@TypeOf(config), "exclude_arch")) {
574 const exclude_arch: []const builtin.Cpu.Arch = &config.exclude_arch;574 const exclude_arch: []const std.Target.Cpu.Arch = &config.exclude_arch;
575 for (exclude_arch) |arch| if (arch == builtin.cpu.arch) return;575 for (exclude_arch) |arch| if (arch == builtin.cpu.arch) return;
576 }576 }
577 if (@hasField(@TypeOf(config), "exclude_os")) {577 if (@hasField(@TypeOf(config), "exclude_os")) {
578 const exclude_os: []const builtin.Os.Tag = &config.exclude_os;578 const exclude_os: []const std.Target.Os.Tag = &config.exclude_os;
579 for (exclude_os) |os| if (os == builtin.os.tag) return;579 for (exclude_os) |os| if (os == builtin.os.tag) return;
580 }580 }
581 for (self.modes) |mode| {581 for (self.modes) |mode| {
...@@ -615,11 +615,11 @@ pub const StackTracesContext = struct {...@@ -615,11 +615,11 @@ pub const StackTracesContext = struct {
615 if (mode_config.exclude.exclude()) return;615 if (mode_config.exclude.exclude()) return;
616 }616 }
617 if (@hasField(@TypeOf(mode_config), "exclude_arch")) {617 if (@hasField(@TypeOf(mode_config), "exclude_arch")) {
618 const exclude_arch: []const builtin.Cpu.Arch = &mode_config.exclude_arch;618 const exclude_arch: []const std.Target.Cpu.Arch = &mode_config.exclude_arch;
619 for (exclude_arch) |arch| if (arch == builtin.cpu.arch) return;619 for (exclude_arch) |arch| if (arch == builtin.cpu.arch) return;
620 }620 }
621 if (@hasField(@TypeOf(mode_config), "exclude_os")) {621 if (@hasField(@TypeOf(mode_config), "exclude_os")) {
622 const exclude_os: []const builtin.Os.Tag = &mode_config.exclude_os;622 const exclude_os: []const std.Target.Os.Tag = &mode_config.exclude_os;
623 for (exclude_os) |os| if (os == builtin.os.tag) return;623 for (exclude_os) |os| if (os == builtin.os.tag) return;
624 }624 }
625625