Skip to content

Commit 7dff3d8

Browse files
committed
disable opcache jit on musl again
1 parent b6f7649 commit 7dff3d8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

build-static.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,22 @@ fi
3535
if [ -z "${SPC_OPT_BUILD_ARGS}" ]; then
3636
SPC_OPT_BUILD_ARGS="--debug"
3737
fi
38+
# init spc libc
39+
if [ -z "${SPC_LIBC}" ]; then
40+
if [ "${os}" = "linux" ]; then
41+
SPC_LIBC="musl"
42+
fi
43+
fi
3844
# init spc download additional args
3945
if [ -z "${SPC_OPT_DOWNLOAD_ARGS}" ]; then
40-
if [ "${os}" = "linux" ] && [ "${SPC_LIBC}" = "glibc" ]; then
46+
if [ "${SPC_LIBC}" = "glibc" ]; then
4147
SPC_OPT_DOWNLOAD_ARGS="--debug --ignore-cache-sources=php-src"
4248
else
4349
SPC_OPT_DOWNLOAD_ARGS="--prefer-pre-built --debug --ignore-cache-sources=php-src"
4450
fi
4551
if [ "${SPC_LIBC}" = "musl" ]; then
4652
SPC_OPT_DOWNLOAD_ARGS="${SPC_OPT_DOWNLOAD_ARGS} --disable-opcache-jit"
47-
fi
53+
fi
4854
fi
4955
# if we need debug symbols, disable strip
5056
if [ -n "${DEBUG_SYMBOLS}" ]; then

0 commit comments

Comments
 (0)