wasi: don't pass --no-entry to linker
This commit is contained in:
parent
ecd0f89254
commit
94e0871603
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user