Remove object file in finally
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
This commit is contained in:
parent
46d894925d
commit
7c18550383
1 changed files with 1 additions and 2 deletions
|
@ -158,9 +158,8 @@ def get_c_expression_values(
|
|||
.format(caller, c_name))
|
||||
else:
|
||||
os.remove(c_name)
|
||||
if _cc_is_msvc:
|
||||
os.remove(obj_name)
|
||||
output = subprocess.check_output([exe_name])
|
||||
return output.decode('ascii').strip().split('\n')
|
||||
finally:
|
||||
remove_file_if_exists(exe_name)
|
||||
remove_file_if_exists(obj_name)
|
||||
|
|
Loading…
Reference in a new issue