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:
parent
4a096bd133
commit
b4e4e6bb21
@ -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{}
|
||||
|
Loading…
Reference in New Issue
Block a user