diff --git a/src/main/java/jace/assembly/AcmeCompiler.java b/src/main/java/jace/assembly/AcmeCompiler.java index 44b28d4..8990541 100644 --- a/src/main/java/jace/assembly/AcmeCompiler.java +++ b/src/main/java/jace/assembly/AcmeCompiler.java @@ -93,6 +93,10 @@ public class AcmeCompiler implements CompileResult { String[] params = {"--outfile", compiledAsset.getAbsolutePath(), "-f", "cbm", "--maxerrors","16",sourceFile.getAbsolutePath()}; int status = acme.run("Acme", params); successful = status == 0; + if (!successful) { + compiledAsset.delete(); + compiledAsset = null; + } } finally { restoreSystemOutput(); System.setProperty("user.dir", oldPath);