Skip to content

Commit

Permalink
Merge pull request #10619 from shindere/fix-o-regression
Browse files Browse the repository at this point in the history
Fix regression introduced by #9960

(cherry picked from commit cffde31)
  • Loading branch information
Octachron committed Sep 9, 2021
1 parent f66f0d2 commit 1e33a7e
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 @@ -315,9 +315,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 1e33a7e

Please sign in to comment.