diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-11-05 18:44:12 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-05 18:44:12 -0500 |
| commit | 702b809ea3e9b9dbdc1fd6efe9306442487e7103 (patch) | |
| tree | bd639378ad2931013ff49789aadfc2104093261c /test/link/wasm/stack_pointer/build.zig | |
| parent | bec36aa7c028f2eaec94a2358f3e1326fcb9a30c (diff) | |
| parent | c893f837151d4764fd34911376836a01192b4d75 (diff) | |
| download | zig-702b809ea3e9b9dbdc1fd6efe9306442487e7103.tar.gz zig-702b809ea3e9b9dbdc1fd6efe9306442487e7103.zip | |
Merge pull request #17815 from Luukdegram/wasm-no-entry
wasm-linker: implement `-fno-entry` and correctly pass `--shared` and `--pie` when given
Diffstat (limited to 'test/link/wasm/stack_pointer/build.zig')
| -rw-r--r-- | test/link/wasm/stack_pointer/build.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/link/wasm/stack_pointer/build.zig b/test/link/wasm/stack_pointer/build.zig index ce724e5736..00ef54c052 100644 --- a/test/link/wasm/stack_pointer/build.zig +++ b/test/link/wasm/stack_pointer/build.zig @@ -13,12 +13,13 @@ pub fn build(b: *std.Build) void { } fn add(b: *std.Build, test_step: *std.Build.Step, optimize: std.builtin.OptimizeMode) void { - const lib = b.addSharedLibrary(.{ + const lib = b.addExecutable(.{ .name = "lib", .root_source_file = .{ .path = "lib.zig" }, .target = .{ .cpu_arch = .wasm32, .os_tag = .freestanding }, .optimize = optimize, }); + lib.entry = .disabled; lib.use_llvm = false; lib.use_lld = false; lib.strip = false; |
