diff options
| author | Luuk de Gram <luuk@degram.dev> | 2022-03-05 15:19:54 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-03-06 14:17:36 -0500 |
| commit | 6d84f22fa0d30f688a2fbe69acab2979373a7806 (patch) | |
| tree | 03d39cb2386d7c9da060e84de495a9e2de9dfc51 /test/behavior/struct.zig | |
| parent | 716abe338907dbcb0ea115dd014c2e13c3a6637b (diff) | |
| download | zig-6d84f22fa0d30f688a2fbe69acab2979373a7806.tar.gz zig-6d84f22fa0d30f688a2fbe69acab2979373a7806.zip | |
stage2: Fix wasm linker for llvm backend
This fixes 2 entrypoints within the self-hosted wasm linker that would be called
for the llvm backend, whereas we should simply call into the llvm backend to perform such action.
i.e. not allocate a decl index when we have an llvm object, and when flushing a module,
we should be calling it on llvm's object, rather than have the wasm linker perform the operation.
Also, this fixes the wasm intrinsics for wasm.memory.size and wasm.memory.grow.
Lastly, this commit ensures that when an extern function is being resolved, we tell LLVM how
to import such function.
Diffstat (limited to 'test/behavior/struct.zig')
| -rw-r--r-- | test/behavior/struct.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/behavior/struct.zig b/test/behavior/struct.zig index 32e374d3d5..1663966f53 100644 --- a/test/behavior/struct.zig +++ b/test/behavior/struct.zig @@ -429,6 +429,7 @@ test "packed struct 24bits" { if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO if (builtin.zig_backend == .stage2_x86_64) return error.SkipZigTest; // TODO + if (builtin.zig_backend == .stage2_llvm and builtin.stage2_arch == .wasm32) return error.SkipZigTest; // TODO comptime { try expect(@sizeOf(Foo24Bits) == 4); |
