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

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

This commit is contained in:
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

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)