Also pass --shared-memory to raw_decode.

This is needed when building for Emscripten with *both* WEBP and JPEG
support.
This commit is contained in:
Attila Oláh 2020-09-24 17:24:12 +00:00
parent 433e052356
commit 2b9abce31b
No known key found for this signature in database
GPG Key ID: 07E6C0643FD142C3

View File

@ -233,6 +233,9 @@ if(WEBP_SUPPORT AND EMSCRIPTEN)
strip_rw)
target_link_options(${target} PUBLIC "-Wl,--shared-memory")
endforeach()
if(JPEG_SUPPORT)
target_link_options(raw_decode PUBLIC "-Wl,--shared-memory")
endif()
endif()
set(TEST_OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/output")