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,9 +81,20 @@ pub fn run_repl(workdir string, vrepl_prefix string) []string {
|
||||
println('')
|
||||
os.rm(file)
|
||||
os.rm(temp_file)
|
||||
$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{}
|
||||
vexe := os.getenv('VEXE')
|
||||
|
Loading…
Reference in New Issue
Block a user