File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
extension/BuildPhpExtension/private Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -97,10 +97,12 @@ Function Get-ExtensionConfig {
97
97
}
98
98
if ($null -ne $composerJson -and $null -ne $composerJson ." php-ext" -and $null -ne $composerJson ." php-ext" ." configure-options" ) {
99
99
$composerJson ." php-ext" ." configure-options" | ForEach-Object {
100
- if ($null -ne $_ ." needs-value" -and $_ ." needs-value" -eq $true -and $_.name -eq " with-$ ( $Extension.ToLower ()) " ) {
101
- $config.options += " --$ ( $_.name ) =shared"
102
- } else {
103
- $config.options += " --$ ( $_.name ) "
100
+ if ($_.name -eq " enable-$ ( $Extension.ToLower ()) " -or $_.name -eq " with-$ ( $Extension.ToLower ()) " ) {
101
+ if ($null -ne $_ ." needs-value" -and $_ ." needs-value" -eq $true -and $_.name -eq " with-$ ( $Extension.ToLower ()) " ) {
102
+ $config.options += " --$ ( $_.name ) =shared"
103
+ } else {
104
+ $config.options += " --$ ( $_.name ) "
105
+ }
104
106
}
105
107
}
106
108
}
You can’t perform that action at this time.
0 commit comments