Skip to content

Commit 7989f55

Browse files
Update build-static.sh
Signed-off-by: Andrey Bolonin <andreybolonin@users.noreply.github.com>
1 parent 6ae610c commit 7989f55

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

build-static.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ arch="$(uname -m)"
1414
os="$(uname -s | tr '[:upper:]' '[:lower:]')"
1515
[ "$os" = "darwin" ] && os="mac"
1616

17+
# Parse command line arguments
18+
for arg in "$@"; do
19+
if [ "$arg" = "--no-upx" ] || [ "$arg" = "--no-compress" ]; then
20+
NO_COMPRESS=1
21+
fi
22+
don
23+
1724
# Supported variables:
1825
# - PHP_VERSION: PHP version to build (default: "8.4")
1926
# - PHP_EXTENSIONS: PHP extensions to build (default: ${defaultExtensions} set below)

0 commit comments

Comments
 (0)