authorgravatar for shritesh@shritesh.comShritesh Bhattarai <shritesh@shritesh.com> 2019-04-05 13:00:46-05:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-04-05 18:46:11-04:00
log3854bb919808b8d86154495fee1acc7e645240a4
tree57657866352691a2071b3b14fa6d2f8f01234cb1
parent66fab05eba9114fd7ffdc53e9cd67333f377100c

wasm: Pass --allow-undefined and --export-all to the linker


1 files changed, 2 insertions(+), 0 deletions(-)

src/link.cpp+2
......@@ -1092,6 +1092,8 @@ static void construct_linker_job_wasm(LinkJob *lj) {
10921092
10931093 lj->args.append("-error-limit=0");
10941094 lj->args.append("--no-entry"); // So lld doesn't look for _start.
1095 lj->args.append("--allow-undefined");
1096 lj->args.append("--export-all");
10951097 lj->args.append("-o");
10961098 lj->args.append(buf_ptr(&g->output_file_path));
10971099