| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts commit 514a830eae3991aec12146d3f6aeff3aa2d8406a.
> The dune build system for the OCaml compiler is morally a hack, it
> uses the tools from the ambient opam switch to build the compiler
> codebase -- which can break whenever the compiler distribution has
> more recent tools than the opam switch, and uses the more recent
> features in its own codebase.
> This is what is going on here: @DemiMarie introduced a new ocamlyacc
> feature, and also started using it in the compiler codebase in the
> non-essential commit 514a830. If we want dune to work well, a
> reasonable solution is to revert 514a830 for now, and wait until the
> next OCaml version is released (with the new ocamlyacc feature) to
> merge it again. At this point the dune build will be possible with
> the most recent OCaml release as your opam switch.
from Gabriel Scherer,
https://github.com/ocaml/ocaml/pull/11718#issuecomment-1475338016
|
|
|
|
|
|
| |
Now that it exists, use it.
Reviewd by Damien Doligez.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
The changes are:
- The -principal flag has been added
- Warning 41 is enabled and causes no error
The files compiled from the root Makefile have more warnings disabled than
those compiled with lex/Makefile but this is not a problem.
|
|
|
|
|
|
|
| |
Make sure ocamlyacc is always called with -v and --strict.
Before this commit, the parsers of the debugger and of ocamltest
were not generated using these options.
|
|
|
|
|
| |
When building the bytecode version of ocamllex, the -strict-sequence flag
was passed twice. This commit removes one of its occurrences.
|
| |
|
| |
|
|
|
|
|
|
|
| |
But make sure not to turn it into an error, so that all the warnings
get printed.
It will be turned into an error once all the interfaces have been added.
|
|
|
|
|
| |
Thhis commit contains changes initially part of PR #11147 but which were
pushed after the PR had been merged.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Since ocamldoc/Makefile.best_ocamldoc was already using OCAMLRUN (rather
than CAMLRUN), it was possible to remove its definition in that file,
because the value is now initialised globally in Makefile.common.
|
| |
|
|
|
|
| |
Each directory can override this default value.
|
| |
|
| |
|
|
|
|
|
|
| |
- Replace -w A with -w +A in various makefiles and tests.
- Replace -w a with -w -a in tests.
- Replace -w Ae with -w +A -w -fragile-matching
|
| |
|
|
|
|
| |
Also use generic (pattern) build rules
|
| |
|
|
|
|
|
| |
It was not used, except in lex/Makefile where this commit replaces its
unique occurrence by its definition in the same file.
|
|
|
|
|
|
|
|
| |
This commit touches neither boot/ocamlc nor boot/ocamllex
It has the side-effect of fixing the cleanup rules which did not use the
$(EXE) extension when removing a file although it was produced with the
$(EXE) extension.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This moves the configure-generated parts of Makefile.common to a
separate (generated) Makefile, allowing Makefile.common to be a normal
Makefile.
OCaml's build system Makefile's now include Makefile.build_config (which
itself includes Makefile.config) but Makefile.config is still installed
as before. This allows configure to generate variables which are
specific to the build process and are not intended to be exported to the
installation.
|
| |
|
|
|
|
|
| |
This should be improved to give better warnings for when Makefile.config
and Makefile.common are required.
|
|
|
|
|
|
|
| |
* Support quoted extensions in comments
* Support quoted extensions in ocamllex
* Support quoted extensions in ocamlyacc
* Fix copying of comments in ocamlyacc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit makes e.g. make -s world.opt completely
silent when everything works, in order to increase the visibility of
any unexpected message occurring during the build.
This will be useful for instance during CI, in particular it should
make it easier to catch undefined build variables.
The implementation is straightforward. The OCAMLLEX_FLAGS variable is
defined in Makefile.common.in and then used consistently by all
lexing recipes.
In addition, in tools/Makefile, the two rules producing the lexers
from cvt_emit.mll and make_opcodes.mll have been replaced by a
pattern-rule and the useless .SUFFIXES target has been removed.
|
|
|
|
| |
As found by make --warn-undefined-variables
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change should be a refactoring no-op.
Before, a DEPFLAGS variable existed in some makefiles to contain
include directories to be passed to ocamldep invocations, but no
support for easily adding command-line flags to ocamldep was available
(invocations would systematically use -slash, which was duplicated
across callsites).
With this PR, a new DEPINCLUDES variable contains the include
directories, and DEPFLAGS is repurposed to contain other command-line
flags for the tool -- currently "slash".
|
|\
| |
| | |
Fixes in lexers
|
| | |
|
| | |
|
|/
|
|
|
|
| |
In order to prepare the transition to autoconf, this commit moves the
configuration Makefile out of the config directory which will disappear
and gives it the name it will have once intstalled, namely Makefile.config.
|