mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 07:31:37 +08:00
Use /DEPENDENTS instead of /IMPORTS in applocal.ps1
This commit is contained in:
parent
bed9b07a83
commit
097626c317
@ -5,7 +5,7 @@ function resolve($targetBinary) {
|
||||
$targetBinaryPath = Resolve-Path $targetBinary
|
||||
$targetBinaryDir = Split-Path $targetBinaryPath -parent
|
||||
|
||||
$a = $(link /dump /imports $targetBinary | ? { $_ -match "^ [^ ].*\.dll" } | % { $_ -replace "^ ","" })
|
||||
$a = $(dumpbin /DEPENDENTS $targetBinary | ? { $_ -match "^ [^ ].*\.dll" } | % { $_ -replace "^ ","" })
|
||||
$a | % {
|
||||
if (Test-Path "$installedDir\$_") {
|
||||
if (Test-Path "$targetBinaryDir\$_") {
|
||||
|
Loading…
Reference in New Issue
Block a user