diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-31 00:11:38 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-31 00:11:38 +0100 |
| commit | 8ef6f9dd7bbb1611dd7166c4e14034e53df4a8b6 (patch) | |
| tree | d13e60bb55f8d8167ebd906ee66485a0097c208b /src/build_settings.cpp | |
| parent | 5bc8a491a7768da0019b7b17da637e681f2ace90 (diff) | |
Compile `wasm64`; Add `lb_run_remove_unused_function_pass`
Diffstat (limited to 'src/build_settings.cpp')
| -rw-r--r-- | src/build_settings.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp index a906f6712..e34330ea8 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -895,7 +895,11 @@ void init_build_context(TargetMetrics *cross_target) { } } else if (is_arch_wasm()) { - bc->link_flags = str_lit("--no-entry --export-table --export-all --allow-undefined "); + if (bc->metrics.arch == TargetArch_wasm32) { + bc->link_flags = str_lit("--no-entry --export-table --export-all --allow-undefined "); + } else { + bc->link_flags = str_lit("--no-entry --export-table --export-all --allow-undefined -mwasm64 "); + } } else { gb_printf_err("Compiler Error: Unsupported architecture\n");; gb_exit(1); |