File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/SPC/builder/extension Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ SPC_CMD_PREFIX_PHP_BUILDCONF="./buildconf --force"
8686; configure command
8787SPC_CMD_PREFIX_PHP_CONFIGURE =" ./configure --prefix= --with-valgrind=no --disable-shared --enable-static --disable-all --disable-cgi --disable-phpdbg --with-pic"
8888; make command
89- SPC_CMD_PREFIX_PHP_MAKE =" make -j${CPU_COUNT} "
89+ SPC_CMD_PREFIX_PHP_MAKE =" make"
9090; embed type for php, static (libphp.a) or shared (libphp.so)
9191SPC_CMD_VAR_PHP_EMBED_TYPE =" static"
9292
Original file line number Diff line number Diff line change @@ -15,8 +15,9 @@ public function validate(): void
1515 if ($ this ->builder ->getPHPVersionID () < 80000 && getenv ('SPC_SKIP_PHP_VERSION_CHECK ' ) !== 'yes ' ) {
1616 throw new \RuntimeException ('The latest protobuf extension requires PHP 8.0 or later ' );
1717 }
18+ $ grpc = $ this ->builder ->getExt ('grpc ' );
1819 // protobuf conflicts with grpc
19- if ($ this -> builder -> getExt ( ' grpc ' ) !== null ) {
20+ if ($ grpc ?->isBuildStatic() ) {
2021 throw new \RuntimeException ('protobuf conflicts with grpc, please remove grpc or protobuf extension ' );
2122 }
2223 }
You can’t perform that action at this time.
0 commit comments