diff --git a/vlib/v/builder/cc.v b/vlib/v/builder/cc.v index 3b70c4a6eadf61..01ca26a054b630 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()