Skip to content

Commit 4f494c2

Browse files
committed
meson: propagate optimization flag for linking on Emscripten
Signed-off-by: Kohei Tokunaga <[email protected]>
1 parent ca5e356 commit 4f494c2

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
@@ -397,6 +397,9 @@ elif host_os == 'emscripten'
397397
if cpu == 'wasm64'
398398
qemu_ldflags += ['-sMEMORY64=' + get_option('wasm64_memory64')]
399399
endif
400+
if get_option('optimization') != 'plain'
401+
qemu_ldflags += ['-O' + get_option('optimization')]
402+
endif
400403
endif
401404

402405
# Choose instruction set (currently x86-only)

0 commit comments

Comments
 (0)