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:
parent
fe87d20f20
commit
76e3b7dff8
@ -795,10 +795,9 @@ fn (mut c Builder) cc_windows_cross() {
|
|||||||
if !c.pref.out_name.to_lower().ends_with('.exe') {
|
if !c.pref.out_name.to_lower().ends_with('.exe') {
|
||||||
c.pref.out_name += '.exe'
|
c.pref.out_name += '.exe'
|
||||||
}
|
}
|
||||||
c.pref.out_name = os.quoted_path(c.pref.out_name)
|
|
||||||
mut args := []string{}
|
mut args := []string{}
|
||||||
args << '${c.pref.cflags}'
|
args << '${c.pref.cflags}'
|
||||||
args << '-o ${c.pref.out_name}'
|
args << '-o ${os.quoted_path(c.pref.out_name)}'
|
||||||
args << '-w -L.'
|
args << '-w -L.'
|
||||||
//
|
//
|
||||||
cflags := c.get_os_cflags()
|
cflags := c.get_os_cflags()
|
||||||
|
Loading…
Reference in New Issue
Block a user