summaryrefslogtreecommitdiffstats
path: root/driver/optmain.ml
diff options
context:
space:
mode:
Diffstat (limited to 'driver/optmain.ml')
-rw-r--r--driver/optmain.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/optmain.ml b/driver/optmain.ml
index 53be3e3ee..a4aaa1a52 100644
--- a/driver/optmain.ml
+++ b/driver/optmain.ml
@@ -54,7 +54,7 @@ let usage = "Usage: ocamlopt <options> <files>\nOptions are:"
let main () =
native_code := true;
c_compiler := Config.native_c_compiler;
- Format.set_formatter_out_channel stderr;
+ Formatmsg.set_output Format.err_formatter;
try
Arg.parse [
"-a", Arg.Set make_archive, " Build a library";