aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-10-31 00:11:38 +0100
committergingerBill <bill@gingerbill.org>2021-10-31 00:11:38 +0100
commit8ef6f9dd7bbb1611dd7166c4e14034e53df4a8b6 (patch)
treed13e60bb55f8d8167ebd906ee66485a0097c208b /src/main.cpp
parent5bc8a491a7768da0019b7b17da637e681f2ace90 (diff)
Compile `wasm64`; Add `lb_run_remove_unused_function_pass`
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/main.cpp b/src/main.cpp
index fad749e34..7338ad45d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -135,19 +135,12 @@ i32 linker_stage(lbGenerator *gen) {
if (is_arch_wasm()) {
timings_start_section(timings, str_lit("wasm-ld"));
-
- if (build_context.metrics.arch == TargetArch_wasm32) {
- result = system_exec_command_line_app("wasm-ld",
- "\"%.*s\\bin\\wasm-ld\" \"%.*s.wasm.o\" -o \"%.*s.wasm\" %.*s %.*s",
- LIT(build_context.ODIN_ROOT),
- LIT(output_base), LIT(output_base), LIT(build_context.link_flags), LIT(build_context.extra_linker_flags));
- } else {
- GB_ASSERT(build_context.metrics.arch == TargetArch_wasm64);
- result = system_exec_command_line_app("wasm-ld",
- "\"%.*s\\bin\\wasm-ld\" \"%.*s.wasm.o\" -o \"%.*s.wasm\" %.*s %.*s",
- LIT(build_context.ODIN_ROOT),
- LIT(output_base), LIT(output_base), LIT(build_context.link_flags), LIT(build_context.extra_linker_flags));
- }
+
+ GB_ASSERT(build_context.metrics.arch == TargetArch_wasm64);
+ result = system_exec_command_line_app("wasm-ld",
+ "\"%.*s\\bin\\wasm-ld\" \"%.*s.wasm.o\" -o \"%.*s.wasm\" %.*s %.*s",
+ LIT(build_context.ODIN_ROOT),
+ LIT(output_base), LIT(output_base), LIT(build_context.link_flags), LIT(build_context.extra_linker_flags));
return result;
}