diff --git a/compiler/main.v b/compiler/main.v index 46aa0088bc..887c9acd67 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -747,7 +747,7 @@ fn (v mut V) cc() { } $if windows { if v.os == .msvc { - cc_msvc(mut v) + v.cc_msvc() return } } diff --git a/compiler/msvc_nix.v b/compiler/msvc_nix.v index 02e7de0df2..e464c4cfc3 100644 --- a/compiler/msvc_nix.v +++ b/compiler/msvc_nix.v @@ -1,6 +1,6 @@ module main -fn cc_msvc(v *V) { +fn (v mut V) cc_msvc() { } fn build_thirdparty_obj_file_with_msvc(flag string) { diff --git a/compiler/msvc_win.v b/compiler/msvc_win.v index 9452e3dca3..2e92bb0dee 100644 --- a/compiler/msvc_win.v +++ b/compiler/msvc_win.v @@ -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 { println('Could not find MSVC')