diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-05-20 07:48:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-20 07:48:35 +0200 |
| commit | d000e53b291afc40da7d676553f1c9685a38f169 (patch) | |
| tree | b8ed7fe4dbecdc6dc6d6a297fa57545c057f52c0 /lib/std | |
| parent | b27c5fbbdeeab12359c7f5bca0fe15fb0be9424e (diff) | |
| parent | b0c10e2262b975743932258710e3fca47113d16e (diff) | |
| download | zig-d000e53b291afc40da7d676553f1c9685a38f169.tar.gz zig-d000e53b291afc40da7d676553f1c9685a38f169.zip | |
Merge pull request #23923 from alexrp/compiler-rt-symbols
Use hidden visibility in compiler-rt and libzigc except when testing
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/leb128.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/std/leb128.zig b/lib/std/leb128.zig index 2a5d9b20fc..dd630b1d29 100644 --- a/lib/std/leb128.zig +++ b/lib/std/leb128.zig @@ -1,3 +1,4 @@ +const builtin = @import("builtin"); const std = @import("std"); const testing = std.testing; @@ -432,6 +433,8 @@ fn test_write_leb128(value: anytype) !void { } test "serialize unsigned LEB128" { + if (builtin.cpu.arch == .x86 and builtin.abi == .musl and builtin.link_mode == .dynamic) return error.SkipZigTest; + const max_bits = 18; comptime var t = 0; @@ -446,6 +449,8 @@ test "serialize unsigned LEB128" { } test "serialize signed LEB128" { + if (builtin.cpu.arch == .x86 and builtin.abi == .musl and builtin.link_mode == .dynamic) return error.SkipZigTest; + // explicitly test i0 because starting `t` at 0 // will break the while loop try test_write_leb128(@as(i0, 0)); |
