From b48e23757ffd707251f72ef66d2516bda4e2fced Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Wed, 24 Jul 2019 00:20:07 +0200 Subject: [PATCH] msvc fixes --- compiler/main.v | 11 ++++++----- compiler/msvc_nix.v | 8 ++++++++ compiler/{msvc.v => msvc_win.v} | 0 3 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 compiler/msvc_nix.v rename compiler/{msvc.v => msvc_win.v} (100%) diff --git a/compiler/main.v b/compiler/main.v index c1890a5d40..fc9e8285ba 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -664,11 +664,12 @@ fn (v mut V) cc() { return } } - if v.os == .msvc { - cc_msvc(v) - return - } - + $if windows { + if v.os == .msvc { + cc_msvc(v) + return + } + } linux_host := os.user_os() == 'linux' v.log('cc() isprod=$v.pref.is_prod outname=$v.out_name') mut a := [v.pref.cflags, '-w'] // arguments for the C compiler diff --git a/compiler/msvc_nix.v b/compiler/msvc_nix.v new file mode 100644 index 0000000000..02e7de0df2 --- /dev/null +++ b/compiler/msvc_nix.v @@ -0,0 +1,8 @@ +module main + +fn cc_msvc(v *V) { +} + +fn build_thirdparty_obj_file_with_msvc(flag string) { + +} diff --git a/compiler/msvc.v b/compiler/msvc_win.v similarity index 100% rename from compiler/msvc.v rename to compiler/msvc_win.v