@@ -18,19 +18,19 @@ if ($IsWindows) {
1818 Push-Location $InstalledDir
1919 $dllFiles = Get-ChildItem - Path . - Recurse | Where-Object { $_.Extension -eq ' .exe' -or $_.Extension -eq ' .dll' }
2020 foreach ($dllFile in $dllFiles ) {
21- dumpbin / PDBPATH:VERBOSE $dllFile.FullName
21+ dumpbin / PDBPATH:VERBOSE $dllFile.FullName | Write-Host
2222 $dumpbinOutput = dumpbin / PDBPATH $dllFile.FullName
2323 $matches = [regex ]::Matches($dumpbinOutput , $PATTERN )
2424 if ($matches.Count -gt 0 ) {
2525 $pdbPath = $matches.Groups [1 ].Value
26- Write-Output " $dllFile -> $pdbPath "
26+ Write-Host " $dllFile -> $pdbPath "
2727 $pdbTargetDirectory = " $symbolFilesDirectory /$ ( Split-Path $ (Resolve-Path $dllFile.FullName - Relative)) "
2828 if (! (Test-Path $pdbTargetDirectory )) {
2929 New-Item $pdbTargetDirectory - ItemType directory
3030 }
3131 Copy-Item $pdbPath $pdbTargetDirectory
3232 } else {
33- Write-Output " No PDB file: $dllFile "
33+ Write-Host " No PDB file: $dllFile "
3434 }
3535 }
3636 Pop-Location
@@ -40,15 +40,15 @@ if ($IsWindows) {
4040 foreach ($dllFile in $dllFiles ) {
4141 $dsymutilOutput = dsymutil - s $dllFile.FullName
4242 if ($dsymutilOutput -match " N_OSO" ) {
43- Write-Output " Copy and strip debug_info: $dllFile "
43+ Write-Host " Copy and strip debug_info: $dllFile "
4444 $pdbTargetDirectory = " $symbolFilesDirectory /$ ( Split-Path $ (Resolve-Path $dllFile.FullName - Relative)) "
4545 if (! (Test-Path $pdbTargetDirectory )) {
4646 New-Item $pdbTargetDirectory - ItemType directory
4747 }
4848 dsymutil $dllFile.FullName - o " $pdbTargetDirectory /$ ( $dllFile.Name ) .dSYM"
4949 strip - S $dllFile.FullName
5050 } else {
51- Write-Output " Skip: $dllFile "
51+ Write-Host " Skip: $dllFile "
5252 }
5353 }
5454 Pop-Location
@@ -59,15 +59,15 @@ if ($IsWindows) {
5959 file $dllFile.FullName
6060 $fileOutput = file $dllFile.FullName
6161 if ($fileOutput -match " with debug_info" ) {
62- Write-Output " Copy and strip debug_info: $dllFile "
62+ Write-Host " Copy and strip debug_info: $dllFile "
6363 $pdbTargetDirectory = " $symbolFilesDirectory /$ ( Split-Path $ (Resolve-Path $dllFile.FullName - Relative)) "
6464 if (! (Test-Path $pdbTargetDirectory )) {
6565 New-Item $pdbTargetDirectory - ItemType directory
6666 }
6767 objcopy -- only- keep- debug $dllFile.FullName " $pdbTargetDirectory /$ ( $dllFile.Name ) .debug"
6868 strip -- strip- debug $dllFile.FullName
6969 } else {
70- Write-Output " Skip: $dllFile "
70+ Write-Host " Skip: $dllFile "
7171 }
7272 }
7373 Pop-Location
0 commit comments