Skip to content

Commit fd5b4e0

Browse files
authored
Windows: use 'yes' in PHP_JIT_ENABLE_ARG
1 parent 867b09a commit fd5b4e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

windows-compile-vs.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ if ($PHP_DEBUG_BUILD -eq 0) {
135135
}
136136

137137
if ($env:PHP_JIT_SUPPORT -eq 1) {
138-
$PHP_JIT_ENABLE_ARG="on"
138+
$PHP_JIT_ENABLE_ARG="yes"
139139
pm-echo "Compiling JIT support in OPcache (unstable)"
140140
}
141141

@@ -610,7 +610,7 @@ append-file-utf8 "extension=php_recursionguard.dll" $php_ini
610610
append-file-utf8 "recursionguard.enabled=0 ;disabled due to minor performance impact, only enable this if you need it for debugging" $php_ini
611611
append-file-utf8 ";extension=php_arraydebug.dll" $php_ini
612612
append-file-utf8 "" $php_ini
613-
if ($PHP_JIT_ENABLE_ARG -eq "on") {
613+
if ($PHP_JIT_ENABLE_ARG -eq "yes") {
614614
append-file-utf8 "; ---- ! WARNING ! ----" $php_ini
615615
append-file-utf8 "; JIT can provide big performance improvements, but as of PHP %PHP_VER% it is still unstable. For this reason, it is disabled by default." $php_ini
616616
append-file-utf8 "; Enable it at your own risk. See https://www.php.net/manual/en/opcache.configuration.php#ini.opcache.jit for possible options." $php_ini

0 commit comments

Comments
 (0)