1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vrepl: fix v repl on Windows (#7798)

This commit is contained in:
yuyi 2021-01-02 19:17:39 +08:00 committed by GitHub
parent c8caf71282
commit 01e098aa77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -28,8 +28,8 @@ const (
is_stdin_a_pipe = (is_atty(0) == 0)
)
fn new_repl() &Repl {
return &Repl{
fn new_repl() Repl {
return Repl{
readline: readline.Readline{}
modules: ['os', 'time', 'math']
}

View File

@ -164,7 +164,7 @@ pub fn launch_tool(is_verbose bool, tool_name string, args []string) {
if is_verbose {
println('launch_tool running tool command: $tool_command ...')
}
os.execvp(tool_exe, args)
os.system(tool_command)
}
// NB: should_recompile_tool/2 compares unix timestamps that have 1 second resolution