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

This commit is contained in:
Shritesh Bhattarai 2019-04-05 13:00:46 -05:00 committed by Andrew Kelley
parent 66fab05eba
commit 3854bb9198

View File

@ -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));