mirror of
https://github.com/ziglang/zig.git
synced 2024-11-26 23:22:44 +00:00
fix new references to std.builtin that should have been std.Target
This commit is contained in:
parent
f37451a63a
commit
7818586a2b
@ -299,7 +299,7 @@ comptime {
|
||||
@export(@import("compiler_rt/sparc.zig")._Qp_qtod, .{ .name = "_Qp_qtod", .linkage = linkage });
|
||||
}
|
||||
|
||||
if (builtin.arch == .powerpc or builtin.arch.isPPC64()) {
|
||||
if (arch == .powerpc or arch.isPPC64()) {
|
||||
@export(@import("compiler_rt/addXf3.zig").__addtf3, .{ .name = "__addkf3", .linkage = linkage });
|
||||
@export(@import("compiler_rt/addXf3.zig").__subtf3, .{ .name = "__subkf3", .linkage = linkage });
|
||||
@export(@import("compiler_rt/mulXf3.zig").__multf3, .{ .name = "__mulkf3", .linkage = linkage });
|
||||
|
@ -571,11 +571,11 @@ pub const StackTracesContext = struct {
|
||||
if (config.exclude.exclude()) return;
|
||||
}
|
||||
if (@hasField(@TypeOf(config), "exclude_arch")) {
|
||||
const exclude_arch: []const builtin.Cpu.Arch = &config.exclude_arch;
|
||||
const exclude_arch: []const std.Target.Cpu.Arch = &config.exclude_arch;
|
||||
for (exclude_arch) |arch| if (arch == builtin.cpu.arch) return;
|
||||
}
|
||||
if (@hasField(@TypeOf(config), "exclude_os")) {
|
||||
const exclude_os: []const builtin.Os.Tag = &config.exclude_os;
|
||||
const exclude_os: []const std.Target.Os.Tag = &config.exclude_os;
|
||||
for (exclude_os) |os| if (os == builtin.os.tag) return;
|
||||
}
|
||||
for (self.modes) |mode| {
|
||||
@ -615,11 +615,11 @@ pub const StackTracesContext = struct {
|
||||
if (mode_config.exclude.exclude()) return;
|
||||
}
|
||||
if (@hasField(@TypeOf(mode_config), "exclude_arch")) {
|
||||
const exclude_arch: []const builtin.Cpu.Arch = &mode_config.exclude_arch;
|
||||
const exclude_arch: []const std.Target.Cpu.Arch = &mode_config.exclude_arch;
|
||||
for (exclude_arch) |arch| if (arch == builtin.cpu.arch) return;
|
||||
}
|
||||
if (@hasField(@TypeOf(mode_config), "exclude_os")) {
|
||||
const exclude_os: []const builtin.Os.Tag = &mode_config.exclude_os;
|
||||
const exclude_os: []const std.Target.Os.Tag = &mode_config.exclude_os;
|
||||
for (exclude_os) |os| if (os == builtin.os.tag) return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user