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