builder: don't panic if msvc rootdir isn't found (#6068)

pull/6070/head
spaceface777 2020-08-05 12:22:10 +02:00 committed by GitHub
parent f331f63f53
commit bf20d6d3db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -96,9 +96,7 @@ fn find_windows_kit_root(host_arch string) ?WindowsKit {
}
kit_lib := kit_root + 'Lib'
// println(kit_lib)
files := os.ls(kit_lib) or {
panic(err)
}
files := os.ls(kit_lib)?
mut highest_path := ''
mut highest_int := 0
for f in files {