Skip to content

Commit 865bc04

Browse files
committed
Rebuild PHP JSPI
1 parent ca30488 commit 865bc04

File tree

20 files changed

+70
-72
lines changed

20 files changed

+70
-72
lines changed

packages/php-wasm/compile/libImageMagick/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ RUN source /root/emsdk/emsdk_env.sh && \
8888

8989
# Manually compile PNG and WebP coders and add them to the library
9090
RUN source /root/emsdk/emsdk_env.sh && \
91-
export JSPI_FLAGS=$(if [ "$JSPI" = "1" ]; then echo "-sSUPPORT_LONGJMP=wasm -fwasm-exceptions"; else echo ""; fi) && \
91+
export JSPI_COMPILE_FLAGS=$(if [ "$JSPI" = "1" ]; then echo "-fwasm-exceptions"; else echo ""; fi) && \
9292
emcc -fPIC -O1 -g0 -fexceptions -I. -I./config -I/root/lib/include -I/root/lib/include/libpng16 \
9393
-DHAVE_CONFIG_H -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_CHANNEL_MASK_DEPTH=32 \
94-
-D__x86_64__ $JSPI_FLAGS -c coders/png.c -o coders/png.o && \
94+
-D__x86_64__ $JSPI_COMPILE_FLAGS -c coders/png.c -o coders/png.o && \
9595
emcc -fPIC -O1 -g0 -fexceptions -I. -I./config -I/root/lib/include \
9696
-DHAVE_CONFIG_H -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -DMAGICKCORE_CHANNEL_MASK_DEPTH=32 \
97-
-D__x86_64__ $JSPI_FLAGS -c coders/webp.c -o coders/webp.o && \
97+
-D__x86_64__ $JSPI_COMPILE_FLAGS -c coders/webp.c -o coders/webp.o && \
9898
ar r MagickCore/.libs/libMagickCore-7.Q16HDRI.a coders/png.o coders/webp.o && \
9999
echo "Added PNG and WebP coders to library"
100100

packages/php-wasm/compile/libImageMagick/jspi/dist/root/lib/include/ImageMagick-7/MagickCore/magick-baseconfig.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@
12111211
/* #undef PIPES_SUPPORT */
12121212

12131213
/* Define if you have PNG library */
1214-
/* #undef PNG_DELEGATE */
1214+
#define MAGICKCORE_PNG_DELEGATE 1
12151215

12161216
/* Define to necessary symbol if this constant uses a non-standard name on
12171217
your system. */
@@ -1415,7 +1415,7 @@
14151415
/* #undef WEBPMUX_DELEGATE */
14161416

14171417
/* Define if you have WEBP library */
1418-
/* #undef WEBP_DELEGATE */
1418+
#define MAGICKCORE_WEBP_DELEGATE 1
14191419

14201420
/* Define to use the Windows GDI32 library */
14211421
/* #undef WINGDI32_DELEGATE */
@@ -1461,9 +1461,7 @@
14611461
/* #undef ZIP_DELEGATE */
14621462

14631463
/* Define if you have ZLIB library */
1464-
#ifndef MAGICKCORE_ZLIB_DELEGATE
1465-
#define MAGICKCORE_ZLIB_DELEGATE 1
1466-
#endif
1464+
/* #undef ZLIB_DELEGATE */
14671465

14681466
/* Define if you have ZSTD library */
14691467
/* #undef ZSTD_DELEGATE */

0 commit comments

Comments
 (0)