File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -173,10 +173,15 @@ if /i "%PHP_SDK_OS_ARCH%"=="x64" (
173
173
set HOST_ARCH_NAME = %PHP_SDK_ARCH%
174
174
)
175
175
176
+ if " %HOST_ARCH_NAME% " == " %TARGET_ARCH_NAME% " (
177
+ set VCVARSALL_ARCH_NAME = %HOST_ARCH_NAME%
178
+ ) else (
179
+ set VCVARSALL_ARCH_NAME = %HOST_ARCH_NAME% _%TARGET_ARCH_NAME%
180
+ )
176
181
if 15 gtr %PHP_SDK_VS_NUM% (
177
- set PHP_SDK_VS_SHELL_CMD = " !PHP_SDK_VC_DIR! \vcvarsall.bat" !HOST_ARCH_NAME! _ !TARGET_ARCH_NAME !
182
+ set PHP_SDK_VS_SHELL_CMD = " !PHP_SDK_VC_DIR! \vcvarsall.bat" !VCVARSALL_ARCH_NAME !
178
183
) else (
179
- set PHP_SDK_VS_SHELL_CMD = " !PHP_SDK_VC_DIR! \Auxiliary\Build\vcvarsall.bat" !HOST_ARCH_NAME! _ !TARGET_ARCH_NAME !
184
+ set PHP_SDK_VS_SHELL_CMD = " !PHP_SDK_VC_DIR! \Auxiliary\Build\vcvarsall.bat" !VCVARSALL_ARCH_NAME !
180
185
)
181
186
182
187
rem echo Visual Studio VC path %PHP_SDK_VC_DIR%
You can’t perform that action at this time.
0 commit comments