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

msvc fixes

This commit is contained in:
Alexander Medvednikov 2019-07-24 00:20:07 +02:00
parent be7f89f664
commit b48e23757f
3 changed files with 14 additions and 5 deletions

View File

@ -664,11 +664,12 @@ fn (v mut V) cc() {
return return
} }
} }
if v.os == .msvc { $if windows {
cc_msvc(v) if v.os == .msvc {
return cc_msvc(v)
return
}
} }
linux_host := os.user_os() == 'linux' linux_host := os.user_os() == 'linux'
v.log('cc() isprod=$v.pref.is_prod outname=$v.out_name') v.log('cc() isprod=$v.pref.is_prod outname=$v.out_name')
mut a := [v.pref.cflags, '-w'] // arguments for the C compiler mut a := [v.pref.cflags, '-w'] // arguments for the C compiler

8
compiler/msvc_nix.v Normal file
View File

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