1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

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 {