Skip to content

Commit f74c938

Browse files
committed
- fix windows build
1 parent 44f8920 commit f74c938

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

config.w32

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ ARG_ENABLE("optimizer-plus", "whether to enable Zend OptimizerPlus support", "ye
22

33
if (PHP_OPTIMIZER_PLUS != "no") {
44

5-
PHP_PGI = "no"; // workaround
6-
PHP_PGO = "no"; // workaround
5+
PHP_PGI = "no"; // workaround
6+
PHP_PGO = "no"; // workaround
77

8-
EXTENSION('ZendOptimizerPlus', "\
9-
ZendAccelerator.c \
10-
zend_accelerator_blacklist.c \
11-
zend_accelerator_debug.c \
12-
zend_accelerator_hash.c \
13-
zend_accelerator_module.c \
14-
zend_accelerator_util_funcs.c \
15-
zend_persist.c \
16-
zend_persist_calc.c \
17-
zend_shared_alloc.c \
18-
shared_alloc_win32.c", true);
8+
EXTENSION('ZendOptimizerPlus', "\
9+
ZendAccelerator.c \
10+
zend_accelerator_blacklist.c \
11+
zend_accelerator_debug.c \
12+
zend_accelerator_hash.c \
13+
zend_accelerator_module.c \
14+
zend_accelerator_util_funcs.c \
15+
zend_persist.c \
16+
zend_persist_calc.c \
17+
zend_shared_alloc.c \
18+
shared_alloc_win32.c", true);
1919

20-
ADD_SOURCES("Optimizer", "zend_optimizer.c", "ZendOptimizerPlus", "OptimizerObj");
20+
ADD_SOURCES(configure_module_dirname + "/Optimizer", "zend_optimizer.c", "ZendOptimizerPlus", "OptimizerObj");
2121

2222

23-
ADD_FLAG('CFLAGS_ZENDOPTIMIZERPLUS', "/I .");
24-
ADD_FLAG('CFLAGS_ZENDOPTIMIZERPLUS', "/D HAVE_OPTIMIZER_PLUS=1");
23+
ADD_FLAG('CFLAGS_ZENDOPTIMIZERPLUS', "/I " + configure_module_dirname);
24+
ADD_FLAG('CFLAGS_ZENDOPTIMIZERPLUS', "/D HAVE_OPTIMIZER_PLUS=1");
2525

26-
ADD_FLAG('CFLAGS_ZENDOPTIMIZERPLUS', "/Dregexec=php_regexec /Dregerror=php_regerror /Dregfree=php_regfree /Dregcomp=php_regcomp /Iext/ereg/regex");
26+
ADD_FLAG('CFLAGS_ZENDOPTIMIZERPLUS', "/Dregexec=php_regexec /Dregerror=php_regerror /Dregfree=php_regfree /Dregcomp=php_regcomp /Iext/ereg/regex");
2727

2828
}

0 commit comments

Comments
 (0)