Proposal: Move architecture-specific information from std.builtin to @import("builtin") #9330
Labels
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
Milestone
Currently, std.builtin contains architecture-specific information about calling conventions:
zig/lib/std/builtin.zig
Lines 156 to 172 in 9de452f
Using architecture-specific calling conventions on the improper architecture yields a compile-error as expected.
With relevance to #653, I believe this information should be moved to std.target, so that address space definitions (which are also architecture-specific) can also live there. Note that calling conventions share a good portion of calling conventions, so maybe this requires some
.ArchitectureSpecific: std.target.CallingConvention
variant in std.builtin.CallingConvention.On a side note, maybe
std.builtin
and@import("builtin")
should not have the same name.The text was updated successfully, but these errors were encountered: