| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
compile, and optcompile to terminate compilation after lambdas are resolved based on this option.
Co-authored-by: Doug Smith <dsmith47@nd.edu>
Co-authored-by: Dmitrii Kosarev <Dmitrii.Kosarev@pm.me>
|
| |
|
|\
| |
| | |
Add the -no-absname option to ocamlc, ocamlopt and ocamldep
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-force-tmc was initially implemented by Frédéric Bour as a way to
implement "automatic TMC optimization" on top of the default behavior
which is "opt-in TMC optimization". We later decided to disable it,
because its usage was in tension with the goals we were setting for
the opt-in mode (in particular: have proper warnings and errors when
something that could be unexpected is going on).
It was kept for debugging purposes, and apparently found a way to
skean in the final merge for TMC (very probably my mistake), but in
a state where it is actually a no-op.
(cherry picked from commit a7fbbfa48edc3d7ba2b839dc76d93b53ff4ca7f3)
|
|
|
| |
Add manual chapters on parallelism and memory model
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Provides an easier way for alternate toplevels to disable the automatic
inclusion mechanism.
|
|
|
|
|
|
| |
Before this commit, the -cmi-file option was recognized only by ocamlc.
This commit makes sure the option is also recognized by ocamlopt.
|
| |
|
|
|
|
|
|
| |
Load_path.find{,_uncap} now invoke a hook before raising Not_found,
which provides a mechanism for automatically adding directories to the
Load_path if required.
|
| |
|
|
|
|
|
|
| |
This is so that a user can override a -slash option.
This change has been kindly contributed by David Allsopp.
|
| |
|
|
|
|
| |
It's no longer 5.00.0 but 5.0.0. The minor version number is no longer padded with a leading zero.
|
|
|
|
|
|
|
|
| |
This lets the user specify against which interface a source module
should be type-checked.
When this option is specified, the usual check for a corresponding
.mli file is skipped.
|
|
|
|
|
| |
DEFAULT_STRING=unsafe (#10893)
The compiler should behave as previous versions with `force-safe-string` enabled, and reject with an error any explicit setting that would try to deviate from that.
|
|\
| |
| | |
Add a `-dump-dir` flag
|
| | |
|
|/ |
|
|
|
|
| |
Co-authored-by: Thomas Refis <thomas.refis@gmail.com>
|
| |
|
| |
|
|
|
|
|
| |
This commit restores the compiler's behaviour when called on a C file
and with no "-o" otption.
|
| |
|
|
|
|
|
|
|
| |
(#10206)
* Split Labels / Variants chapter into two
* Move GADT tutorial into the tutorials
* Make beginning of the GADT tutorial less abrupt
|
| |
|
| |
|
| |
|
|\
| |
| | |
Fix for #9295.Do not print options in usage msg
|
| | |
|
|\ \
| | |
| | | |
Cmm invariants
|
| | | |
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The availability analysis was introduced in 2017 as part of GPR #856,
as a first step towards generating DWARF debugging information.
This project (generating DWARF debug info) was stopped, but the analysis
is still here, even though its results are not used and it is not normally run
(except when the experimental -drunavail flag is given).
This is essentially dead code. This PR removes it.
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
|
|
| |
For instance, -w "Ae" now raises an ocaml_deprecated_cli alert.
Setting warning with prefixed letters (-w "+a-e") is clearer and
coexists better with named warnings (-w +fragile-match).
In particular, this new alert should warn on spelling mistakes like
-w +fragile-math
|
|
|
|
| |
Record when linker inputs are specified on command line.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When using ocamlc/ocamlopt to compile C files, it was not possible
so far to control where the resulting object file should be written.
In other words, before this commit a command like
ocamlopt -c foo.c -o /tmp/foo.o
produced the following error message:
Options -c and -o are incompatible when compiling C files
This commit removes this restriction and lets the compiler accept
that the command-line options -c and -o are given simultaneously
also when compiling one C file, so that the previous command now works.
The -o command-line option remains forbidden when compiling several source
files.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
While working on a new backend for OCaml to generate Erlang sources, I
found the need to read the .cmi file back into a `Types.signature`
value.
@Drup spotted that I was reading the file and pointed out this value was
already being read during the type checking process.
A quick check at the `Typedtree.module_coercion` showed us that it would
be difficul to extract the same information that is readily available in
the signature value.
This change will expose the signature value directly, so other backends
relying on this signature information do not need to do the extra work
of reading it again.
|
| |
|