| ... | ... | @@ -7353,7 +7353,7 @@ pub const AUDIT = struct { |
| 7353 | 7353 | ARMEB = toAudit(.armeb), |
| 7354 | 7354 | CSKY = toAudit(.csky), |
| 7355 | 7355 | HEXAGON = @intFromEnum(std.elf.EM.HEXAGON), |
| 7356 | | X86 = toAudit(.x86), |
| 7356 | LOONGARCH64 = toAudit(.loongarch64), |
| 7357 | 7357 | M68K = toAudit(.m68k), |
| 7358 | 7358 | MIPS = toAudit(.mips), |
| 7359 | 7359 | MIPSEL = toAudit(.mips) | LE, |
| ... | ... | @@ -7367,18 +7367,22 @@ pub const AUDIT = struct { |
| 7367 | 7367 | S390X = toAudit(.s390x), |
| 7368 | 7368 | SPARC = toAudit(.sparc), |
| 7369 | 7369 | SPARC64 = toAudit(.sparc64), |
| 7370 | X86 = toAudit(.x86), |
| 7370 | 7371 | X86_64 = toAudit(.x86_64), |
| 7372 | XTENSA = toAudit(.xtensa), |
| 7371 | 7373 | |
| 7372 | 7374 | fn toAudit(arch: std.Target.Cpu.Arch) u32 { |
| 7373 | 7375 | var res: u32 = @intFromEnum(arch.toElfMachine()); |
| 7374 | 7376 | if (arch.endian() == .little) res |= LE; |
| 7375 | 7377 | switch (arch) { |
| 7376 | 7378 | .aarch64, |
| 7379 | .loongarch64, |
| 7377 | 7380 | .mips64, |
| 7378 | 7381 | .mips64el, |
| 7379 | 7382 | .powerpc64, |
| 7380 | 7383 | .powerpc64le, |
| 7381 | 7384 | .riscv64, |
| 7385 | .s390x, |
| 7382 | 7386 | .sparc64, |
| 7383 | 7387 | .x86_64, |
| 7384 | 7388 | => res |= @"64BIT", |