#5995: document -for-pack as mandatory including in bytecode. This is required to get proper names for exceptions.

master
alainfrisch 2015-12-11 12:58:07 +01:00
parent 22681b8d2a
commit a9854a4a3e
2 changed files with 16 additions and 7 deletions

View File

@ -313,10 +313,15 @@ executable file, where
.BR ocamlrun (1)
can find it and use it.
.TP
.BI \-for\-pack \ ident
This option is accepted for compatibility with
.BR ocamlopt (1)
; it does nothing.
.BI \-for\-pack \ module\-path
Generate an object file (.cmx and .o files) that can later be included
as a sub-module (with the given access path) of a compilation unit
constructed with
.BR \-pack .
For instance,
.B ocamlc\ \-for\-pack\ P\ \-c\ A.ml
will generate a.cmo that can later be used with
.BR "ocamlc -pack -o P.cmo a.cmo" .
.TP
.B \-g
Add debugging information while compiling and linking. This option is

View File

@ -199,9 +199,13 @@ The "-dllpath" option simply stores \var{dir} in the produced
executable file, where "ocamlrun" can find it and use it as
described in section~\ref{s-ocamlrun-dllpath}.
\item["-for-pack" \var{ident}]
This option is accepted for compatibility with "ocamlopt"; it does
nothing.
\item["-for-pack" \var{module-path}]
Generate an object file (".cmo") that can later be
included
as a sub-module (with the given access path) of a compilation unit
constructed with "-pack". For instance, "ocamlc -for-pack P -c A.ml"
will generate "a.cmo" that can later be used with
"ocamlc -pack -o P.cmo a.cmo".
\item["-g"]
Add debugging information while compiling and linking. This option is