musl: deal with zig rename of i386 to x86

musl uses "i386" for this while Zig has switched to "x86".
This commit is contained in:
Andrew Kelley
2023-06-19 14:12:30 -07:00
committed by Jacob Young
parent 928c4c9bd3
commit cdcfd15d3c
4 changed files with 14 additions and 5 deletions

View File

@@ -4918,7 +4918,7 @@ fn detectLibCFromBuilding(
const generic_name = target_util.libCGenericName(target);
// Some architectures are handled by the same set of headers.
const arch_name = if (target.abi.isMusl())
musl.archName(target.cpu.arch)
musl.archNameHeaders(target.cpu.arch)
else if (target.cpu.arch.isThumb())
// ARM headers are valid for Thumb too.
switch (target.cpu.arch) {