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

main.v: fix msvc

This commit is contained in:
Alexander Medvednikov 2019-08-07 13:41:40 +02:00
parent cebb6cd537
commit 4b86ba6f6a
3 changed files with 3 additions and 3 deletions

View File

@ -747,7 +747,7 @@ fn (v mut V) cc() {
} }
$if windows { $if windows {
if v.os == .msvc { if v.os == .msvc {
cc_msvc(mut v) v.cc_msvc()
return return
} }
} }

View File

@ -1,6 +1,6 @@
module main module main
fn cc_msvc(v *V) { fn (v mut V) cc_msvc() {
} }
fn build_thirdparty_obj_file_with_msvc(flag string) { fn build_thirdparty_obj_file_with_msvc(flag string) {

View File

@ -196,7 +196,7 @@ fn find_msvc() ?MsvcResult {
} }
} }
pub fn cc_msvc(v mut V) { pub fn v (mut V) cc_msvc() {
r := find_msvc() or { r := find_msvc() or {
println('Could not find MSVC') println('Could not find MSVC')