Skip to content

Commit

Permalink
Fix regression introduced by #9660
Browse files Browse the repository at this point in the history
This commit restores the compiler's behaviour when called on a C file
and with no "-o" otption.
  • Loading branch information
shindere committed Sep 8, 2021
1 parent 3e85887 commit c1099df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Changes
Expand Up @@ -486,9 +486,10 @@ OCaml 4.13.0
- #9407: added warning for missing mli interface file
(Anukriti Kumar, review by Florian Angeletti)

- #9960: extend ocamlc/ocamlopt's -o option to work when compiling C files
(Sébastien Hinderer, reported by Daniel Bünzli, review by Florian
Angeletti and Gabriel Scherer)
- #9960, #10619: extend ocamlc/ocamlopt's -o option to work when
compiling C files
(Sébastien Hinderer, reported by Daniel Bünzli, review by
Florian Angeletti and Gabriel Scherer)

- #10095: simplify the syntax error messages produced by the compiler.
In many cases, the compiler would produce an error message that looked
Expand Down
2 changes: 1 addition & 1 deletion driver/compenv.ml
Expand Up @@ -645,7 +645,7 @@ let process_action
| None -> c_object_of_filename name
| Some n -> n
in
if Ccomp.compile_file ~output:obj_name name <> 0
if Ccomp.compile_file ?output:!output_name name <> 0
then raise (Exit_with_status 2);
ccobjs := obj_name :: !ccobjs
| ProcessObjects names ->
Expand Down

0 comments on commit c1099df

Please sign in to comment.