mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-29 13:03:37 +01:00
fxconv: fix temporary files not being removed
This commit is contained in:
parent
66e2f8429c
commit
bd49e9506e
1 changed files with 4 additions and 0 deletions
|
@ -976,6 +976,10 @@ def elf(data, output, symbol, toolchain=None, arch=None, section=None,
|
||||||
proc = subprocess.run([
|
proc = subprocess.run([
|
||||||
f"{toolchain}-ld", "-r", fp_obj.name + "-tmp", fp_asm.name + ".o",
|
f"{toolchain}-ld", "-r", fp_obj.name + "-tmp", fp_asm.name + ".o",
|
||||||
"-o", output ])
|
"-o", output ])
|
||||||
|
|
||||||
|
os.remove(fp_obj.name + "-tmp")
|
||||||
|
os.remove(fp_asm.name + ".o")
|
||||||
|
|
||||||
if proc.returncode != 0:
|
if proc.returncode != 0:
|
||||||
raise FxconvError("ld returned {proc.returncode}")
|
raise FxconvError("ld returned {proc.returncode}")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue