Skip to content

Commit 726837e

Browse files
committed
Only package extension DLL for datadog_trace
1 parent e6d8e3f commit 726837e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

extension/BuildPhpExtension/private/Add-Package.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@ function Add-Package {
7676
Remove-Item -Path "vc140.pdb" -Force
7777
}
7878

79+
# Keep only the extension DLL for ddtrace.
80+
if($Config.name -eq 'ddtrace') {
81+
Get-ChildItem -Filter "*.dll" | ForEach-Object {
82+
if($_.Name -ne "php_$($Config.name).dll") {
83+
Remove-Item -Path $_.FullName -Force
84+
}
85+
}
86+
}
87+
7988
# As per https://github.com/ThePHPF/pie-design#windows-binaries
8089
$arch = $Config.arch
8190
if(-not(Test-Path -Path "php_$($Config.name).dll")) {

0 commit comments

Comments
 (0)