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

vrepl: fix cleanup on windows

This commit is contained in:
yuyi 2020-05-04 00:13:37 +08:00 committed by GitHub
parent 4a096bd133
commit b4e4e6bb21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,8 +81,19 @@ pub fn run_repl(workdir string, vrepl_prefix string) []string {
println('')
os.rm(file)
os.rm(temp_file)
os.rm(file[..file.len - 2])
os.rm(temp_file[..temp_file.len - 2])
$if windows {
os.rm(file[..file.len - 2] + '.exe')
os.rm(temp_file[..temp_file.len - 2] + '.exe')
$if msvc {
os.rm(file[..file.len - 2] + '.ilk')
os.rm(file[..file.len - 2] + '.pdb')
os.rm(temp_file[..temp_file.len - 2] + '.ilk')
os.rm(temp_file[..temp_file.len - 2] + '.pdb')
}
} $else {
os.rm(file[..file.len - 2])
os.rm(temp_file[..temp_file.len - 2])
}
}
mut r := Repl{}
mut readline := readline.Readline{}