File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,16 @@ Get-ChildItem "$Package/*.dylib" | Sort-Object -Property Name | ForEach-Object {
32
32
Write-Output " Output from ldd-apple $ ( $libraryPath ) :"
33
33
Write-Output $output
34
34
35
- $libraryNames = $output | Where-Object { ([string ]$_ ).Contains(' dyld: loaded' ) } | ForEach-Object {
36
- if (! ($_ -match ' dyld: loaded: <.*?> (.*)' )) {
35
+ $libraryNames = $output | Where-Object {
36
+ [string ]$line = $_
37
+ $line.StartsWith (' dyld[' ) -or $line.StartsWith (' dyld: loaded:' )
38
+ } | ForEach-Object {
39
+ if (! ($_ -match ' dyld(?:: loaded|\[\d+\]): <.*?> (.*)' )) {
37
40
throw " Failed to parse ldd-apple output: $_ "
38
41
}
39
42
40
43
$filePath = $Matches [1 ]
41
- if ($filePath -ne $libraryPath ) {
44
+ if ($filePath -ne $libraryPath -and ! $filePath .Contains ( ' cpp.exec ' ) ) {
42
45
$filePath
43
46
}
44
47
} | Sort-Object
You can’t perform that action at this time.
0 commit comments