Skip to content

Commit 1be17b3

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

utils/build.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,6 +1075,13 @@ 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+
$DebugSwiftC += " --version"
1082+
$SwiftVersionOutput = Invoke-Expression $DebugSwiftC
1083+
Write-Host "DEBUG DEBUG DEBUG SwiftVersionOutput: $SwiftVersionOutput"
1084+
10781085
if (-not ($Platform -eq "Windows")) {
10791086
TryAdd-KeyValue $Defines CMAKE_Swift_COMPILER_WORKS = "YES"
10801087
}

0 commit comments

Comments
 (0)