Skip to content

Commit

Permalink
update v.cached_msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
kbkpbot committed Jan 6, 2025
1 parent d50d63b commit 504d006
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vlib/v/builder/cc_windows.v
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub fn (mut v Builder) find_win_cc() ! {
println('failed command: `${cmd_version}`')
println('${v.pref.ccompiler} not found, looking for msvc...')
}
find_msvc(v.pref.m64) or {
msvc := find_msvc(v.pref.m64) or {
if v.pref.is_verbose {
println('msvc not found, looking for thirdparty/tcc...')
}
Expand All @@ -35,6 +35,7 @@ pub fn (mut v Builder) find_win_cc() ! {
}
v.pref.ccompiler = 'msvc'
v.pref.ccompiler_type = .msvc
v.cached_msvc = msvc
return
}
v.pref.ccompiler_type = pref.cc_from_string(v.pref.ccompiler)
Expand Down

0 comments on commit 504d006

Please sign in to comment.