Skip to content

Commit

Permalink
builder: fix ./v -os windows run examples/hello_world.v (eliminate …
Browse files Browse the repository at this point in the history
…the "No such file or directory; code: 2" msg)
  • Loading branch information
spytheman committed Jul 27, 2023
1 parent fe87d20 commit 76e3b7d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions vlib/v/builder/cc.v
Expand Up @@ -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()
Expand Down

0 comments on commit 76e3b7d

Please sign in to comment.