| ... | @@ -1091,7 +1091,9 @@ static void construct_linker_job_wasm(LinkJob *lj) { | ... | @@ -1091,7 +1091,9 @@ static void construct_linker_job_wasm(LinkJob *lj) { |
| 1091 | CodeGen *g = lj->codegen; | 1091 | CodeGen *g = lj->codegen; |
| 1092 | | 1092 | |
| 1093 | lj->args.append("-error-limit=0"); | 1093 | lj->args.append("-error-limit=0"); |
| 1094 | lj->args.append("--no-entry"); // So lld doesn't look for _start. | 1094 | if (g->zig_target->os != OsWASI) { |
| | 1095 | 	 lj->args.append("--no-entry"); // So lld doesn't look for _start. |
| | 1096 | } |
| 1095 | lj->args.append("--allow-undefined"); | 1097 | lj->args.append("--allow-undefined"); |
| 1096 | lj->args.append("--export-all"); | 1098 | lj->args.append("--export-all"); |
| 1097 | lj->args.append("-o"); | 1099 | lj->args.append("-o"); |