From 76e3b7dff8caa86eca65b7356e4a4d38aabb2230 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 28 Jul 2023 01:53:57 +0300 Subject: [PATCH] builder: fix `./v -os windows run examples/hello_world.v` (eliminate the "No such file or directory; code: 2" msg) --- vlib/v/builder/cc.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vlib/v/builder/cc.v b/vlib/v/builder/cc.v index 3b70c4a6ea..01ca26a054 100644 --- a/vlib/v/builder/cc.v +++ b/vlib/v/builder/cc.v @@ -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()