We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a727656 commit c26ab80Copy full SHA for c26ab80
meson.build
@@ -878,6 +878,12 @@ elif host_os == 'openbsd'
878
# Disable OpenBSD W^X if available
879
emulator_link_args = cc.get_supported_link_arguments('-Wl,-z,wxneeded')
880
endif
881
+elif host_os == 'emscripten'
882
+ # Emscripten uses the optimization flag also during the link time.
883
+ # https://emscripten.org/docs/optimizing/Optimizing-Code.html#how-emscripten-optimizes
884
+ if get_option('optimization') != 'plain'
885
+ emulator_link_args += ['-O' + get_option('optimization')]
886
+ endif
887
888
889
###############################################
0 commit comments