builder: auto cleanup xxx.def generated by tcc on windows (#7878)

pull/7897/head
yuyi 2021-01-05 23:07:07 +08:00 committed by GitHub
parent a94935aa08
commit 9d9ca0ab5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -591,6 +591,12 @@ fn (mut v Builder) cc() {
v.pref.cleanup_files << v.out_name_c
v.pref.cleanup_files << response_file
}
$if windows {
if v.ccoptions.is_cc_tcc {
def_name := v.pref.out_name[0..v.pref.out_name.len - 4]
v.pref.cleanup_files << '${def_name}.def'
}
}
//
todo()
os.chdir(vdir)