Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We have hit the limit of the target bit set in the format #11

Closed
alexrp opened this issue Aug 30, 2024 · 0 comments · Fixed by #12
Closed

We have hit the limit of the target bit set in the format #11

alexrp opened this issue Aug 30, 2024 · 0 comments · Fixed by #12

Comments

@alexrp
Copy link
Member

alexrp commented Aug 30, 2024

We use bit 31 to indicate the last inclusion, and we have 31 targets taking up bits 0 through 30:

/// This is organized by grouping together at the beginning,
/// targets most likely to share the same symbol information.
const zig_targets = [_]ZigTarget{
// zig fmt: off
.{ .arch = .arm , .abi = .gnueabi },
.{ .arch = .armeb , .abi = .gnueabi },
.{ .arch = .arm , .abi = .gnueabihf },
.{ .arch = .armeb , .abi = .gnueabihf },
.{ .arch = .arc , .abi = .gnu },
.{ .arch = .csky , .abi = .gnueabi },
.{ .arch = .csky , .abi = .gnueabihf },
.{ .arch = .m68k , .abi = .gnu },
.{ .arch = .mipsel , .abi = .gnueabihf },
.{ .arch = .mips , .abi = .gnueabihf },
.{ .arch = .mipsel , .abi = .gnueabi },
.{ .arch = .mips , .abi = .gnueabi },
.{ .arch = .x86 , .abi = .gnu },
.{ .arch = .riscv32 , .abi = .gnu },
.{ .arch = .sparc , .abi = .gnu },
.{ .arch = .powerpc , .abi = .gnueabi },
.{ .arch = .powerpc , .abi = .gnueabihf },
.{ .arch = .powerpc64le, .abi = .gnu },
.{ .arch = .powerpc64 , .abi = .gnu },
.{ .arch = .mips64el , .abi = .gnuabi64 },
.{ .arch = .mips64 , .abi = .gnuabi64 },
.{ .arch = .mips64el , .abi = .gnuabin32 },
.{ .arch = .mips64 , .abi = .gnuabin32 },
.{ .arch = .aarch64 , .abi = .gnu },
.{ .arch = .aarch64_be , .abi = .gnu },
.{ .arch = .x86_64 , .abi = .gnu },
.{ .arch = .x86_64 , .abi = .gnux32 },
.{ .arch = .riscv64 , .abi = .gnu },
.{ .arch = .sparc64 , .abi = .gnu },
.{ .arch = .loongarch64, .abi = .gnu },
.{ .arch = .s390x , .abi = .gnu },
// zig fmt: on
};

Just posting this issue as a reminder for whoever adds more entries to this list next; the format will need to change to accommodate new targets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant