Skip to content

Commit 2b9ae43

Browse files
committed
Autodetect config for oci and ibm extensions
1 parent 693aac7 commit 2b9ae43

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extension/BuildPhpExtension/private/Get-ExtensionConfig.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ Function Get-ExtensionConfig {
147147
$config.build_tools += "python"
148148
}
149149

150+
if($Extension -eq "oci8_19" -or $Extension -eq "pdo_oci" -or $Extension -eq 'ibm_db2' -or $Extension -eq 'pdo_ibm') {
151+
$env:AUTO_DETECT_ARGS = 'true'
152+
$env:AUTO_DETECT_LIBS = 'true'
153+
}
154+
150155
if($env:AUTO_DETECT_ARGS -eq 'true') {
151156
$argument = Get-ArgumentFromConfig $Extension $configW32Content
152157
$argumentKey = $argument.Split("=")[0]

0 commit comments

Comments
 (0)