File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,14 @@ MCFILE=$(BUILD_DIR)\wsyslog.rc
29
29
BUILD_DIR_DEV_NAME =php-$(PHP_VERSION_STRING ) -devel-$(PHP_COMPILER_SHORT ) -$(PHP_ARCHITECTURE )
30
30
BUILD_DIR_DEV =$(BUILD_DIR ) \$(BUILD_DIR_DEV_NAME )
31
31
32
+ !if "$(DEBUGGER)" == "1"
33
+ DEBUGGER_CMD =devenv
34
+ DEBUGGER_ARGS =/debugexe
35
+ !else
36
+ DEBUGGER_CMD =
37
+ DEBUGGER_ARGS =
38
+ !endif
39
+
32
40
all : generated_files $(EXT_TARGETS ) $(PECL_TARGETS ) $(SAPI_TARGETS )
33
41
34
42
build_dirs : $(BUILD_DIR ) $(BUILD_DIRS_SUB ) $(BUILD_DIR_DEV )
@@ -151,18 +159,19 @@ clean-pgo: clean-all
151
159
-del /f /q $(BUILD_DIR ) \p ecl-$(PHP_VERSION_STRING )$(PHP_ZTS_ARCHIVE_POSTFIX ) -Win32-$(PHP_COMPILER_SHORT ) -$(PHP_ARCHITECTURE ) .zip
152
160
-del /f /q $(BUILD_DIR ) \p hp-test-pack-$(PHP_VERSION_STRING ) .zip
153
161
162
+
154
163
!if $(PHP_TEST_INI_PATH) == ""
155
164
test : set-tmp-env
156
- " $( BUILD_DIR) \php.exe" -d open_basedir= -d output_buffering=0 run-tests.php $(TESTS ) -p " $( BUILD_DIR) \php.exe"
165
+ $( DEBUGGER_CMD ) $( DEBUGGER_ARGS ) " $( BUILD_DIR) \php.exe" -d open_basedir= -d output_buffering=0 run-tests.php $(TESTS ) -p " $( BUILD_DIR) \php.exe"
157
166
158
167
run : set-tmp-env
159
- " $( BUILD_DIR) \php.exe" $(ARGS )
168
+ $( DEBUGGER_CMD ) $( DEBUGGER_ARGS ) " $( BUILD_DIR) \php.exe" $(ARGS )
160
169
!else
161
170
test : set-tmp-env
162
- " $( BUILD_DIR) \php.exe" -n -c $(PHP_TEST_INI_PATH ) -d open_basedir= -d output_buffering=0 -d memory_limit=-1 run-tests.php -p " $( BUILD_DIR) \php.exe" -n -c $(PHP_TEST_INI_PATH ) $(TESTS )
171
+ $( DEBUGGER_CMD ) $( DEBUGGER_ARGS ) " $( BUILD_DIR) \php.exe" -n -c $(PHP_TEST_INI_PATH ) -d open_basedir= -d output_buffering=0 -d memory_limit=-1 run-tests.php -p " $( BUILD_DIR) \php.exe" -n -c $(PHP_TEST_INI_PATH ) $(TESTS )
163
172
164
173
run : set-tmp-env
165
- " $( BUILD_DIR) \php.exe" -n -c $(PHP_TEST_INI_PATH ) $(ARGS )
174
+ $( DEBUGGER_CMD ) $( DEBUGGER_ARGS ) " $( BUILD_DIR) \php.exe" -n -c $(PHP_TEST_INI_PATH ) $(ARGS )
166
175
!endif
167
176
168
177
build-snap : set-tmp-env generated_files
You can’t perform that action at this time.
0 commit comments