diff options
| author | Shritesh Bhattarai <shritesh@shritesh.com> | 2019-04-05 13:00:46 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-04-05 18:46:11 -0400 |
| commit | 3854bb919808b8d86154495fee1acc7e645240a4 (patch) | |
| tree | 57657866352691a2071b3b14fa6d2f8f01234cb1 /src/link.cpp | |
| parent | 66fab05eba9114fd7ffdc53e9cd67333f377100c (diff) | |
| download | zig-3854bb919808b8d86154495fee1acc7e645240a4.tar.gz zig-3854bb919808b8d86154495fee1acc7e645240a4.zip | |
wasm: Pass --allow-undefined and --export-all to the linker
Diffstat (limited to 'src/link.cpp')
| -rw-r--r-- | src/link.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/link.cpp b/src/link.cpp index c2d46f0ac6..d6093581f7 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -1092,6 +1092,8 @@ static void construct_linker_job_wasm(LinkJob *lj) { lj->args.append("-error-limit=0"); lj->args.append("--no-entry"); // So lld doesn't look for _start. + lj->args.append("--allow-undefined"); + lj->args.append("--export-all"); lj->args.append("-o"); lj->args.append(buf_ptr(&g->output_file_path)); |
