Created
March 28, 2023 18:28
-
-
Save yuyoyuppe/38083ef299aab69bb479d52dda45aa7e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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