Skip to content

Instantly share code, notes, and snippets.

@yuyoyuppe
Created March 28, 2023 18:28
Show Gist options
  • Save yuyoyuppe/38083ef299aab69bb479d52dda45aa7e to your computer and use it in GitHub Desktop.
Save yuyoyuppe/38083ef299aab69bb479d52dda45aa7e to your computer and use it in GitHub Desktop.
$lib_dir = "..."
$symbol = "..."
$jobs = @()
Get-ChildItem -Path $lib_dir -Filter *.lib -Recurse | ForEach-Object {
$lib_path = $_.FullName
# Write-Host "Processing $lib_path..."
$jobs += Start-Job -ScriptBlock {
param($lib_path, $symbol)
$dumpbin_output = & dumpbin /symbols $lib_path | Select-String $symbol
if ($dumpbin_output) {
Write-Host "Symbol found in $lib_path"
Write-Host $dumpbin_output
}
} -ArgumentList $lib_path, $symbol
}
$completed_jobs = $jobs | Where-Object { $_.State -ne 'Running' -and $_.State -ne 'NotStarted' }
$completed_jobs | Receive-Job
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment