mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
编译验证
This commit is contained in:
parent
7fb3d05b2c
commit
7c3826f4a4
@ -11,6 +11,14 @@ __PROJECT__=$(
|
|||||||
)
|
)
|
||||||
cd ${__PROJECT__}
|
cd ${__PROJECT__}
|
||||||
|
|
||||||
|
OS=$(uname -s)
|
||||||
|
ARCH=$(uname -m)
|
||||||
|
|
||||||
|
if [[ $OS = "Linux" && -f /etc/os-release ]]; then
|
||||||
|
OS_NAME=$(cat /etc/os-release | grep '^ID=' | awk -F '=' '{print $2}')
|
||||||
|
# debian ubuntu alpine
|
||||||
|
fi
|
||||||
|
|
||||||
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
|
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
|
||||||
|
|
||||||
chmod +x bin/spc
|
chmod +x bin/spc
|
||||||
@ -19,7 +27,6 @@ chmod +x bin/spc
|
|||||||
|
|
||||||
./bin/spc list-ext
|
./bin/spc list-ext
|
||||||
|
|
||||||
|
|
||||||
EXTENSIONS="calendar,ctype,exif,fileinfo,filter,ftp"
|
EXTENSIONS="calendar,ctype,exif,fileinfo,filter,ftp"
|
||||||
EXTENSIONS="${EXTENSIONS},session,tokenizer"
|
EXTENSIONS="${EXTENSIONS},session,tokenizer"
|
||||||
EXTENSIONS="${EXTENSIONS},phar,posix"
|
EXTENSIONS="${EXTENSIONS},phar,posix"
|
||||||
@ -38,7 +45,7 @@ EXTENSIONS="${EXTENSIONS},redis"
|
|||||||
EXTENSIONS="${EXTENSIONS},pdo,pdo_mysql,pdo_sqlite"
|
EXTENSIONS="${EXTENSIONS},pdo,pdo_mysql,pdo_sqlite"
|
||||||
EXTENSIONS="${EXTENSIONS},mysqlnd,sqlite3"
|
EXTENSIONS="${EXTENSIONS},mysqlnd,sqlite3"
|
||||||
EXTENSIONS="${EXTENSIONS},mongodb"
|
EXTENSIONS="${EXTENSIONS},mongodb"
|
||||||
|
EXTENSIONS="${EXTENSIONS},swoole"
|
||||||
|
|
||||||
|
./bin/spc build "${EXTENSIONS}" --build-cli --cc=clang --cxx=clang++ --debug
|
||||||
./bin/spc build "${EXTENSIONS}" --build-cli --cc=clang --cxx=clang++ --debug
|
|
||||||
# ./bin/spc build "${EXTENSIONS}" --build-cli --cc=gcc --cxx=g++ --debug
|
# ./bin/spc build "${EXTENSIONS}" --build-cli --cc=gcc --cxx=g++ --debug
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user