diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-31 00:37:37 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-31 00:37:37 +0100 |
| commit | 841a96691bcbe62add30530777b26c38bc0a3fff (patch) | |
| tree | 732ee9c1d0f41d89c5cb27c7177cc17ce1f0ffa7 /src/build_settings.cpp | |
| parent | 8ef6f9dd7bbb1611dd7166c4e14034e53df4a8b6 (diff) | |
Attempt to get wasm64 compiling with the correct features enabled
Diffstat (limited to 'src/build_settings.cpp')
| -rw-r--r-- | src/build_settings.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp index e34330ea8..4c7faa1b2 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -893,15 +893,12 @@ void init_build_context(TargetMetrics *cross_target) { bc->link_flags = str_lit("-arch arm64 "); break; } - - } else if (is_arch_wasm()) { - 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 if (bc->metrics.arch == TargetArch_wasm32) { + bc->link_flags = str_lit("--no-entry --export-table --export-all --allow-undefined --features=wasm-feature-atomics "); + } else if (bc->metrics.arch == TargetArch_wasm64) { + bc->link_flags = str_lit("--no-entry --export-table --export-all --allow-undefined -mwasm64 --features=wasm-feature-memory64,wasm-feature-atomics --verbose "); } else { - gb_printf_err("Compiler Error: Unsupported architecture\n");; + gb_printf_err("Compiler Error: Unsupported architecture\n"); gb_exit(1); } |