Skip to content

Commit

Permalink
ocaml#5995: document -for-pack as mandatory including in bytecode. Th…
Browse files Browse the repository at this point in the history
…is is required to get proper names for exceptions.
  • Loading branch information
alainfrisch committed Dec 11, 2015
1 parent 22681b8 commit a9854a4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
13 changes: 9 additions & 4 deletions man/ocamlc.m
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,15 @@ standard search path (the one corresponding to the
.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
Expand Down
10 changes: 7 additions & 3 deletions manual/manual/cmds/comp.etex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9854a4

Please sign in to comment.