Skip to content

Commit 7eb7b39

Browse files
committed
Improved Win32 build by providing separated bat file
1 parent ecad700 commit 7eb7b39

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010

1111
### Changed
1212
- Optimize build to produce smaller module
13+
- Improved Win32 build by providing separated `bat` file
1314

1415
### Fixed
1516
- Fixed compiler warnings on build lemon

appveyor.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,7 @@ install:
5454
- 'cd parser'
5555
- 'copy %PHP_SDK%\bin\re2c.exe .\re2c.exe'
5656
- '"%VS110COMNTOOLS%\VsDevCmd" %BUILD_PLATFORM%'
57-
- cl lemon.c
58-
- del parser.c parser.h scanner.c
59-
- re2c -o scanner.c scanner.re
60-
- lemon -s parser.php5.lemon
61-
- type parser.php5.c > parser.c
62-
- type base.c >> parser.c
57+
- cmd /c install-win32.bat
6358

6459
- echo Building PHP [%PHP_VERSION%]
6560
- '%PHP_SDK%\bin\phpsdk_setvars'
@@ -72,9 +67,10 @@ install:
7267

7368
build_script:
7469
- cd %APPVEYOR_BUILD_FOLDER%
70+
- '%PHP_DEVPACK%\\phpize --clean'
7571
- '%PHP_DEVPACK%\\phpize'
7672
- configure --enable-zephir_parser
77-
- nmake
73+
- nmake 2> compile-errors.log 1> compile.log
7874

7975
on_finish:
8076
- cd %APPVEYOR_BUILD_FOLDER%

parser/install-win32.bat

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
cl lemon.c
2+
del parser.c parser.h scanner.c
3+
re2c -o scanner.c scanner.re
4+
lemon -s parser.php5.lemon
5+
type parser.php5.c > parser.c
6+
type base.c >> parser.c

0 commit comments

Comments
 (0)