mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix v run .
on Windows
This commit is contained in:
parent
a2b80d5b3d
commit
159990132f
@ -387,6 +387,9 @@ string _STR_TMP(const char *fmt, ...) {
|
|||||||
else {
|
else {
|
||||||
'./' + c.out_name
|
'./' + c.out_name
|
||||||
}
|
}
|
||||||
|
$if windows {
|
||||||
|
cmd = c.out_name
|
||||||
|
}
|
||||||
if os.args.len > 3 {
|
if os.args.len > 3 {
|
||||||
cmd += ' ' + os.args.right(3).join(' ')
|
cmd += ' ' + os.args.right(3).join(' ')
|
||||||
}
|
}
|
||||||
@ -394,7 +397,8 @@ string _STR_TMP(const char *fmt, ...) {
|
|||||||
if ret != 0 {
|
if ret != 0 {
|
||||||
s := os.exec(cmd)
|
s := os.exec(cmd)
|
||||||
println(s)
|
println(s)
|
||||||
println('ret not 0, exiting')
|
println('failed to run the compiled program, this should never happen')
|
||||||
|
println('please submit a GitHub issue')
|
||||||
exit(1)
|
exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user