| ... | ... | @@ -3,6 +3,9 @@ const builtin = @import("builtin"); |
| 3 | 3 | const native_endian = builtin.cpu.arch.endian(); |
| 4 | 4 | const ofmt_c = builtin.object_format == .c; |
| 5 | 5 | |
| 6 | /// For now, we prefer weak linkage because some of the routines we implement here may also be |
| 7 | /// provided by system/dynamic libc. Eventually we should be more disciplined about this on a |
| 8 | /// per-symbol, per-target basis: https://github.com/ziglang/zig/issues/11883 |
| 6 | 9 | pub const linkage: std.builtin.GlobalLinkage = if (builtin.is_test) |
| 7 | 10 | .internal |
| 8 | 11 | else if (ofmt_c) |