Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Nov 7, 2024
1 parent 8665bde commit 589cbe4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions vlib/v/builder/msvc_windows.v
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,11 @@ fn (mut v Builder) build_thirdparty_obj_file_with_msvc(mod string, path string,
}
println('${obj_path} not found, building it (with msvc)...')
flush_stdout()
cfile := cfile := if os.exists('${path_without_o_postfix}.c') { '${path_without_o_postfix}.c' } else {
'${path_without_o_postfix}.cpp'
}
cfile := if os.exists('${path_without_o_postfix}.c') {
'${path_without_o_postfix}.c'
} else {
'${path_without_o_postfix}.cpp'
}
flags := msvc_string_flags(moduleflags)
inc_dirs := flags.inc_paths.join(' ')
defines := flags.defines.join(' ')
Expand Down

0 comments on commit 589cbe4

Please sign in to comment.