[build] Add guard for missing arm64 msvc runtime (#8922)

This commit is contained in:
sciencewhiz
2026-05-28 20:08:46 -07:00
committed by GitHub
parent 5c3a474a58
commit 14db070c2c

View File

@@ -65,9 +65,12 @@ if (OperatingSystem.current().isWindows()) {
}
def arm64Folder = null
file("$runtimeLocation\\arm64").eachFile {
if (it.name.endsWith('.CRT')) {
arm64Folder = it
def arm64Dir = file("$runtimeLocation\\arm64")
if (arm64Dir.exists()) {
arm64Dir.eachFile {
if (it.name.endsWith('.CRT')) {
arm64Folder = it
}
}
}