Add wasm-ld support for wasm code generation

This commit is contained in:
gingerBill
2020-06-03 13:12:38 +01:00
parent 8589af1458
commit 626b4740b1
3 changed files with 32 additions and 10 deletions

View File

@@ -684,7 +684,7 @@ void init_build_context(TargetMetrics *cross_target) {
break;
}
} else if (bc->metrics.arch == TargetArch_wasm32) {
bc->link_flags = str_lit("--no-entry --export-table --export-all --allow-undefined ");
} else {
gb_printf_err("Compiler Error: Unsupported architecture\n");;
gb_exit(1);