Skip to content

Commit e77fbe7

Browse files
committed
ci: enumerate swift.exe DLL dependencies in Windows spike
1 parent a39934d commit e77fbe7

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

.github/workflows/windows-spike.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,19 @@ jobs:
5353
run: |
5454
$bin = Split-Path (Get-Command swift).Source
5555
Write-Host "bin: $bin"
56-
Get-ChildItem $bin -Filter '*.dll' | Measure-Object | ForEach-Object { Write-Host "dlls in bin: $($_.Count)" }
57-
foreach ($exe in @('swift.exe','clang.exe','swift-frontend.exe')) {
58-
$p = Join-Path $bin $exe
59-
if (Test-Path $p) {
60-
Write-Host "--- $exe ---"
61-
$out = & $p --version 2>&1
62-
Write-Host "exit=$LASTEXITCODE output=$out"
63-
} else { Write-Host "$exe MISSING" }
56+
$deps = & dumpbin /DEPENDENTS (Join-Path $bin 'swift.exe') |
57+
Where-Object { $_ -match '\.dll' } | ForEach-Object { ($_ -replace '.*\s','').Trim() }
58+
Write-Host "swift.exe depends on: $($deps -join ', ')"
59+
foreach ($d in $deps) {
60+
$found = Get-ChildItem $bin -Filter $d -ErrorAction SilentlyContinue
61+
if (-not $found) {
62+
$sys = Get-Command $d -ErrorAction SilentlyContinue
63+
if ($sys) { Write-Host "$d -> $($sys.Source)" }
64+
else { Write-Host "MISSING EVERYWHERE: $d" }
65+
} else { Write-Host "$d -> in toolchain bin" }
6466
}
67+
$out = & (Join-Path $bin 'swift.exe') --version 2>&1
68+
Write-Host "swift --version exit=$LASTEXITCODE output=$out"
6569
6670
- name: Build shared core (HeadlessProtocol)
6771
shell: pwsh

0 commit comments

Comments
 (0)