Commit 3854bb9198

Shritesh Bhattarai <shritesh@shritesh.com>
2019-04-05 20:00:46
wasm: Pass --allow-undefined and --export-all to the linker
1 parent 66fab05
Changed files (1)
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));