mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
main.v: fix msvc
This commit is contained in:
parent
cebb6cd537
commit
4b86ba6f6a
@ -747,7 +747,7 @@ fn (v mut V) cc() {
|
||||
}
|
||||
$if windows {
|
||||
if v.os == .msvc {
|
||||
cc_msvc(mut v)
|
||||
v.cc_msvc()
|
||||
return
|
||||
}
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user