Skip to content

Commit 3ca8557

Browse files
committed
meson: propagate optimization flag for linking on Emscripten
Signed-off-by: Kohei Tokunaga <[email protected]>
1 parent 60a0ede commit 3ca8557

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

meson.build

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,9 @@ elif host_os == 'emscripten'
399399
qemu_common_flags += ['-DWASM64_MEMORY64=' + memory64]
400400
qemu_ldflags += ['-sMEMORY64=' + memory64, '-DWASM64_MEMORY64=' + memory64]
401401
endif
402+
if get_option('optimization') != 'plain'
403+
emulator_link_args += ['-O' + get_option('optimization')]
404+
endif
402405
endif
403406

404407
# Choose instruction set (currently x86-only)

0 commit comments

Comments
 (0)