Skip to content

Commit 6ee0f95

Browse files
committed
Fix x86 PGO builds wrt. 3a4163b
PGO builds are not supported when cross-compiling, but our 32bit production builds are supposed to be optimized. We fix this by doing native builds of x86 on amd64 architectures, what is supported due to the WOW64 subsystem, and is what we did before anyway.
1 parent 3a4163b commit 6ee0f95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/phpsdk_setshell.bat

+2
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ if /i "%PHP_SDK_OS_ARCH%"=="x64" (
193193

194194
if "%HOST_ARCH_NAME%"=="%TARGET_ARCH_NAME%" (
195195
set VCVARSALL_ARCH_NAME=%HOST_ARCH_NAME%
196+
) else if "%HOST_ARCH_NAME%_%TARGET_ARCH_NAME%"=="amd64_x86" (
197+
set VCVARSALL_ARCH_NAME=%TARGET_ARCH_NAME%
196198
) else (
197199
set VCVARSALL_ARCH_NAME=%HOST_ARCH_NAME%_%TARGET_ARCH_NAME%
198200
)

0 commit comments

Comments
 (0)