Skip to content

Commit 76e3b7d

Browse files
committed
builder: fix ./v -os windows run examples/hello_world.v (eliminate the "No such file or directory; code: 2" msg)
1 parent fe87d20 commit 76e3b7d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

vlib/v/builder/cc.v

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,10 +795,9 @@ fn (mut c Builder) cc_windows_cross() {
795795
if !c.pref.out_name.to_lower().ends_with('.exe') {
796796
c.pref.out_name += '.exe'
797797
}
798-
c.pref.out_name = os.quoted_path(c.pref.out_name)
799798
mut args := []string{}
800799
args << '${c.pref.cflags}'
801-
args << '-o ${c.pref.out_name}'
800+
args << '-o ${os.quoted_path(c.pref.out_name)}'
802801
args << '-w -L.'
803802
//
804803
cflags := c.get_os_cflags()

0 commit comments

Comments
 (0)