std.zig.system.linux: update API usage

This commit is contained in:
Andrew Kelley 2025-07-08 15:15:21 -07:00
parent c1c49a7d1c
commit 81b0c99915

View File

@ -413,13 +413,13 @@ pub fn detectNativeCpuAndFeatures() ?Target.Cpu {
return core;
},
.sparc64 => {
return SparcCpuinfoParser.parse(current_arch, f.reader()) catch null;
return SparcCpuinfoParser.parse(current_arch, f.deprecatedReader()) catch null;
},
.powerpc, .powerpcle, .powerpc64, .powerpc64le => {
return PowerpcCpuinfoParser.parse(current_arch, f.reader()) catch null;
return PowerpcCpuinfoParser.parse(current_arch, f.deprecatedReader()) catch null;
},
.riscv64, .riscv32 => {
return RiscvCpuinfoParser.parse(current_arch, f.reader()) catch null;
return RiscvCpuinfoParser.parse(current_arch, f.deprecatedReader()) catch null;
},
else => {},
}