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

builder: fix ./v -os windows run examples/hello_world.v (eliminate the "No such file or directory; code: 2" msg)

This commit is contained in:
Delyan Angelov 2023-07-28 01:53:57 +03:00
parent fe87d20f20
commit 76e3b7dff8
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -795,10 +795,9 @@ fn (mut c Builder) cc_windows_cross() {
if !c.pref.out_name.to_lower().ends_with('.exe') {
c.pref.out_name += '.exe'
}
c.pref.out_name = os.quoted_path(c.pref.out_name)
mut args := []string{}
args << '${c.pref.cflags}'
args << '-o ${c.pref.out_name}'
args << '-o ${os.quoted_path(c.pref.out_name)}'
args << '-w -L.'
//
cflags := c.get_os_cflags()