forked from mapbox/windows-builds
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinktype.ps1
More file actions
45 lines (38 loc) · 1.06 KB
/
linktype.ps1
File metadata and controls
45 lines (38 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Write-Host 'Checking for files linked with /MT, /MTd or /MDd';
Write-Host 'checking libs...';
foreach ($item in Get-ChildItem $args[0] -Recurse -Include *.lib){
$output = dumpbin /DIRECTIVES $item.FullName;
#MT and MTd
if ($output -like '*LIBCMT*') {
Write-Host "MT or MTd $item";
}
#MDd
if ($output -like '*MSVCRTD*') {
Write-Host "MDd $item";
}
}
Write-Host 'checking .node...';
foreach ($item in Get-ChildItem $args[0] -Recurse -Include *.node){
$output = dumpbin /DIRECTIVES $item.FullName;
#MT and MTd
if ($output -like '*LIBCMT*') {
Write-Host "MT or MTd $item";
}
#MDd
if ($output -like '*MSVCRTD*') {
Write-Host "MDd $item";
}
}
Write-Host 'checking dlls...';
foreach ($item in Get-ChildItem $args[0] -Recurse -Include *.dll){
$output = dumpbin /DIRECTIVES $item.FullName;
#MT and MTd
if ($output -like '*LIBCMT*') {
Write-Host "MT or MTd $item";
}
#MDd
if ($output -like '*MSVCRTD*') {
Write-Host "MDd $item";
}
}
Write-Host 'finished';