msvc fixes

pull/1289/head
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

View File

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