Skip to content

Commit e5d0641

Browse files
committed
err, build command, not download command
1 parent 7dff3d8 commit e5d0641

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

build-static.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,26 @@ os="$(uname -s | tr '[:upper:]' '[:lower:]')"
3131
if [ -z "${SPC_REL_TYPE}" ]; then
3232
SPC_REL_TYPE="source"
3333
fi
34-
# init spc build additional args
35-
if [ -z "${SPC_OPT_BUILD_ARGS}" ]; then
36-
SPC_OPT_BUILD_ARGS="--debug"
37-
fi
3834
# init spc libc
3935
if [ -z "${SPC_LIBC}" ]; then
4036
if [ "${os}" = "linux" ]; then
4137
SPC_LIBC="musl"
4238
fi
4339
fi
40+
# init spc build additional args
41+
if [ -z "${SPC_OPT_BUILD_ARGS}" ]; then
42+
SPC_OPT_BUILD_ARGS="--debug"
43+
if [ "${SPC_LIBC}" = "musl" ]; then
44+
SPC_OPT_BUILD_ARGS="${SPC_OPT_BUILD_ARGS} --disable-opcache-jit"
45+
fi
46+
fi
4447
# init spc download additional args
4548
if [ -z "${SPC_OPT_DOWNLOAD_ARGS}" ]; then
4649
if [ "${SPC_LIBC}" = "glibc" ]; then
4750
SPC_OPT_DOWNLOAD_ARGS="--debug --ignore-cache-sources=php-src"
4851
else
4952
SPC_OPT_DOWNLOAD_ARGS="--prefer-pre-built --debug --ignore-cache-sources=php-src"
5053
fi
51-
if [ "${SPC_LIBC}" = "musl" ]; then
52-
SPC_OPT_DOWNLOAD_ARGS="${SPC_OPT_DOWNLOAD_ARGS} --disable-opcache-jit"
53-
fi
5454
fi
5555
# if we need debug symbols, disable strip
5656
if [ -n "${DEBUG_SYMBOLS}" ]; then

0 commit comments

Comments
 (0)