Skip to content

Commit 853aa4a

Browse files
committed
Improved install-development script
1 parent a833bf9 commit 853aa4a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

install-development

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@
1414
# license@zephir-lang.com so we can mail you a copy immediately.
1515

1616
# Available params:
17-
# --arch
1817
# --phpize
1918
# --php-config
2019
#
2120
# Example:
22-
# ./install --phpize /usr/bin/phpize5.6 --php-config /usr/bin/php-config5.6
21+
# ./install-development --phpize /usr/bin/phpize5.6 --php-config /usr/bin/php-config5.6
2322

2423
set -e
2524

25+
export ZEND_DONT_UNLOAD_MODULES=1
26+
export USE_ZEND_ALLOC=0
27+
2628
CURRENT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
2729
PARSER_DIR=${CURRENT_DIR}/parser
2830

29-
# Set defaults
30-
ARCH=
3131
CC=${CC:-}
3232

3333
GCC_BIN=$(command -v gcc 2>/dev/null)
@@ -71,7 +71,6 @@ fi
7171
for arg in "$@"; do
7272
shift
7373
case "$arg" in
74-
"--arch") set -- "$@" "-a" ;;
7574
"--phpize") set -- "$@" "-i" ;;
7675
"--php-config") set -- "$@" "-c" ;;
7776
*) set -- "$@" "$arg"
@@ -81,7 +80,6 @@ done
8180
# Options switcher
8281
while getopts a:i:c: opts; do
8382
case ${opts} in
84-
a) ARCH=${OPTARG} ;;
8583
i) PHPIZE_BIN=${OPTARG} ;;
8684
c) PHPCONFIG_BIN=${OPTARG} ;;
8785
esac

0 commit comments

Comments
 (0)