#5995: document -for-pack as mandatory including in bytecode. This is required to get proper names for exceptions.
parent
22681b8d2a
commit
a9854a4a3e
13
man/ocamlc.m
13
man/ocamlc.m
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue