From 4b86ba6f6ab90e53954b152d4d1dd7c6883a4f7a Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 7 Aug 2019 13:41:40 +0200 Subject: [PATCH] main.v: fix msvc --- compiler/main.v | 2 +- compiler/msvc_nix.v | 2 +- compiler/msvc_win.v | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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')