Skip to content

Commit c0c6ff7

Browse files
committed
Add more debug log for swiftc invocation
1 parent 5b024e8 commit c0c6ff7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

utils/build.ps1

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,20 @@ function Build-CMakeProject {
10751075
} else {
10761076
TryAdd-KeyValue $Defines CMAKE_Swift_COMPILER (Join-Path -Path (Get-PinnedToolchainTool) -ChildPath "swiftc.exe")
10771077
}
1078+
1079+
$DebugSwiftC = $Defines["CMAKE_Swift_COMPILER"]
1080+
Write-Host "DEBUG DEBUG DEBUG CMAKE_Swift_COMPILER: $DebugSwiftC"
1081+
$DumpSwiftC = dumpbin /Dependents $DebugSwiftC
1082+
Write-Host "DEBUG DEBUG DEBUG DumpSwiftC: $DumpSwiftC"
1083+
$BinFolder = Split-Path $DebugSwiftC
1084+
Write-Host "DEBUG DEBUG DEBUG BinFolder: $BinFolder"
1085+
$DumpChildren = Get-ChildItem $BinFolder
1086+
Write-Host "DEBUG DEBUG DEBUG DumpChildren: $DumpChildren"
1087+
$SwiftDriver = Join-Path -Path $BinFolder -ChildPath "swift-driver.exe"
1088+
Write-Host "DEBUG DEBUG DEBUG SwiftDriver: $SwiftDriver"
1089+
$DumpSwiftDriver = dumpbin /Dependents $SwiftDriver
1090+
Write-Host "DEBUG DEBUG DEBUG DumpSwiftDriver: $DumpSwiftDriver"
1091+
10781092
if (-not ($Platform -eq "Windows")) {
10791093
TryAdd-KeyValue $Defines CMAKE_Swift_COMPILER_WORKS = "YES"
10801094
}

0 commit comments

Comments
 (0)