fix: add now required -rdynamic compiler option to example
This commit is contained in:
parent
6d05abc4d4
commit
4bcc881651
|
@ -10,6 +10,9 @@ pub fn build(b: *std.build.Builder) void {
|
||||||
lib.setBuildMode(mode);
|
lib.setBuildMode(mode);
|
||||||
lib.target.cpu_arch = .wasm32;
|
lib.target.cpu_arch = .wasm32;
|
||||||
lib.target.os_tag = .wasi;
|
lib.target.os_tag = .wasi;
|
||||||
|
|
||||||
|
// This is required for Zig to export WASM symbols.
|
||||||
|
lib.rdynamic = true;
|
||||||
deps.pkgs.addAllTo(lib);
|
deps.pkgs.addAllTo(lib);
|
||||||
lib.install();
|
lib.install();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue