From 9130ea9cbc657cd7adf02830e40a89f6de3953f3 Mon Sep 17 00:00:00 2001 From: Pierre Letouzey Date: Sun, 2 Mar 2014 00:17:29 +0100 Subject: Set officially the minimal OCaml requirement to 3.12.1 Anyway, a few syntactic features of 3.12 were already used here and there (e.g. local opening via Foo.(...), or the record shortcut { field; ... }). Hence compiling with 3.11 wasn't working anymore. Already take advantage of the following 3.12.1 features : - "module type of ..." in CArray, CList, CString ... - "ocamldep -ml-synonym" : no need anymore to hack the ocamldep output via our coqdep to localize the .ml4 modules :-) The -ml-synonym option (+ various bugfixes) is the reason for asking 3.12.1 directly and not just 3.12.0. After all, if debian stable is providing 3.12.1, then everybody has it ;-) --- Makefile.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile.build') diff --git a/Makefile.build b/Makefile.build index f8895b2ed8..7bfc6f9539 100644 --- a/Makefile.build +++ b/Makefile.build @@ -106,7 +106,7 @@ OCAMLOPT := $(OCAMLOPT) $(CAMLFLAGS) BYTEFLAGS=$(CAMLDEBUG) $(USERFLAGS) OPTFLAGS=$(CAMLDEBUGOPT) $(CAMLTIMEPROF) $(USERFLAGS) -DEPFLAGS= $(LOCALINCLUDES) +DEPFLAGS= $(LOCALINCLUDES) -I ide -I ide/utils define bestocaml $(if $(OPT),\ @@ -928,10 +928,10 @@ endif $(SHOW)'CAMLP4DEPS $<' $(HIDE)echo "$*.ml: $(if $(NO_RECOMPILE_ML4),$(ORDER_ONLY_SEP)) $(call CAMLP4DEPS,$<)" $(TOTARGET) -# We now use coqdep_boot to wrap around ocamldep -modules, since it is aware -# of .ml4 files +# Since OCaml 3.12.1, we could use again ocamldep directly, thanks to +# the option -ml-synonym -OCAMLDEP_NG = $(COQDEPBOOT) -mldep $(OCAMLDEP) +OCAMLDEP_NG = $(OCAMLDEP) -slash -ml-synonym .ml4 checker/%.ml.d: $(D_DEPEND_BEFORE_SRC) checker/%.ml $(D_DEPEND_AFTER_SRC) $(COQDEPBOOT) $(GENFILES) $(SHOW)'OCAMLDEP $<' -- cgit v1.2.3