Merge pull request #1619 from bnoordhuis/fix1570
fix build-exe for --target-arch wasm32 (#1570)master
commit
364bc66924
|
@ -386,7 +386,7 @@ static void construct_linker_job_elf(LinkJob *lj) {
|
||||||
static void construct_linker_job_wasm(LinkJob *lj) {
|
static void construct_linker_job_wasm(LinkJob *lj) {
|
||||||
CodeGen *g = lj->codegen;
|
CodeGen *g = lj->codegen;
|
||||||
|
|
||||||
lj->args.append("--relocatable"); // So lld doesn't look for _start.
|
lj->args.append("--no-entry"); // So lld doesn't look for _start.
|
||||||
lj->args.append("-o");
|
lj->args.append("-o");
|
||||||
lj->args.append(buf_ptr(&g->output_file_path));
|
lj->args.append(buf_ptr(&g->output_file_path));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue