Skip to content

Commit

Permalink
Merge branch 'build_native_php' into build-windows-php
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingxyk committed Jan 21, 2025
2 parents 7c07e56 + ea3941a commit 6464c52
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sapi/scripts/cygwin/install-re2c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,20 @@ __PROJECT__=$(
pwd
)
cd ${__PROJECT__}
ROOT=${__PROJECT__}


RE2C_VERSION=3.0

wget https://github.com/swoole/swoole-cli/releases/download/v5.0.1/re2c.exe
curl -fSLo re2c.exe https://github.com/swoole/swoole-cli/releases/download/v5.0.1/re2c.exe
mv ./re2c.exe /usr/bin/re2c
chmod +x /usr/bin/re2c
re2c -v

build_re2c() {
cd /tmp
wget https://github.com/skvadrik/re2c/releases/download/3.0/re2c-3.0.tar.xz
curl -fSLo re2c-${RE2C_VERSION}.tar.xz https://github.com/skvadrik/re2c/releases/download/3.0/re2c-3.0.tar.xz
tar xvf re2c-${RE2C_VERSION}.tar.xz
cd re2c-${RE2C_VERSION}
autoreconf -i -W all
./configure --prefix=/usr && make -j $(nproc) && make install
cd $ROOT
cd ${__PROJECT__}
}

0 comments on commit 6464c52

Please sign in to comment.