Skip to content

Commit

Permalink
ocaml#5593: Remove C file when -output-obj fails. (Cherry-picked from…
Browse files Browse the repository at this point in the history
… trunk, commit 12356.)

git-svn-id: http://caml.inria.fr/svn/ocaml/version/4.00@12357 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
  • Loading branch information
alainfrisch committed Apr 16, 2012
1 parent 39fd96e commit 1f4a891
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bytecomp/bytelink.ml
Expand Up @@ -466,6 +466,7 @@ let link_bytecode_as_c ppf tolink outfile =
close_out outchan
with x ->
close_out outchan;
remove_file outfile;
raise x
end;
if !Clflags.debug then
Expand Down

0 comments on commit 1f4a891

Please sign in to comment.