aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
authorShritesh Bhattarai <shritesh@shritesh.com>2019-04-05 13:00:46 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-04-05 18:46:11 -0400
commit3854bb919808b8d86154495fee1acc7e645240a4 (patch)
tree57657866352691a2071b3b14fa6d2f8f01234cb1 /src/link.cpp
parent66fab05eba9114fd7ffdc53e9cd67333f377100c (diff)
downloadzig-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.cpp2
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));