wasi: don't pass --no-entry to linker

master
Shritesh Bhattarai 2019-04-14 00:03:32 -05:00
parent ecd0f89254
commit 94e0871603
1 changed files with 3 additions and 1 deletions

View File

@ -1091,7 +1091,9 @@ static void construct_linker_job_wasm(LinkJob *lj) {
CodeGen *g = lj->codegen;
lj->args.append("-error-limit=0");
lj->args.append("--no-entry"); // So lld doesn't look for _start.
if (g->zig_target->os != OsWASI) {
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");