aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.build
diff options
context:
space:
mode:
authorGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2017-12-10 03:31:55 +0100
committerGravatar Emilio Jesus Gallego Arias <e+git@x80.org>2017-12-10 19:58:31 +0100
commitf5cb7eb3e68e4b7d1bb5eeb8d9c58666201945d4 (patch)
tree1b3657bf526f89561f14b28c196913832c4e9d8b /Makefile.build
parent598e3ae4a8eb8d9bce316e13d71ee48d9ba1a01f (diff)
[make] remove unneeded generated file "tolink.ml"
When statically linking plugins, the "DECLARE PLUGIN" macro takes care of properly setting up the loaded module table. This setup was also done by `coqmktop`, thus in order to ease bisecting, we didn't take care of it in the `coqmktop` deprecation. Fixes #6364.
Diffstat (limited to 'Makefile.build')
-rw-r--r--Makefile.build18
1 files changed, 6 insertions, 12 deletions
diff --git a/Makefile.build b/Makefile.build
index 3e4c5a0b4..f11719c07 100644
--- a/Makefile.build
+++ b/Makefile.build
@@ -386,12 +386,12 @@ $(COQTOP_BYTE_MLTOP): toplevel/coqtop_byte_bin.ml
$(HIDE)$(OCAMLC) $(MLINCLUDES) $(BYTEFLAGS) -package compiler-libs.toplevel -c $<
ifeq ($(BEST),opt)
-$(COQTOPEXE): tools/tolink.cmx $(LINKCMX) $(LIBCOQRUN) $(TOPLOOPCMA:.cma=.cmxs) $(COQTOP_OPT_MLTOP)
+$(COQTOPEXE): $(LINKCMX) $(LIBCOQRUN) $(TOPLOOPCMA:.cma=.cmxs) $(COQTOP_OPT_MLTOP)
$(SHOW)'COQMKTOP -o $@'
- $(HIDE)$(OCAMLOPT) -linkall -linkpkg -I vernac -I toplevel -I tools \
+ $(HIDE)$(OCAMLOPT) -linkall -linkpkg -I toplevel \
-I kernel/byterun/ -cclib -lcoqrun \
$(SYSMOD) -package camlp5.gramlib \
- tools/tolink.cmx $(LINKCMX) $(OPTFLAGS) $(LINKMETADATA) \
+ $(LINKCMX) $(OPTFLAGS) $(LINKMETADATA) \
$(COQTOP_OPT_MLTOP) toplevel/coqtop_bin.ml -o $@
$(STRIP) $@
$(CODESIGN) $@
@@ -401,20 +401,14 @@ $(COQTOPEXE): $(COQTOPBYTE)
endif
# Are "-cclib lcoqrun -dllib -lcoqrun" necessary?
-$(COQTOPBYTE): tools/tolink.cmo $(LINKCMO) $(LIBCOQRUN) $(TOPLOOPCMA) $(COQTOP_BYTE_MLTOP)
+$(COQTOPBYTE): $(LINKCMO) $(LIBCOQRUN) $(TOPLOOPCMA) $(COQTOP_BYTE_MLTOP)
$(SHOW)'COQMKTOP -o $@'
- $(HIDE)$(OCAMLC) -linkall -linkpkg -I vernac -I toplevel -I tools \
+ $(HIDE)$(OCAMLC) -linkall -linkpkg -I toplevel \
-I kernel/byterun -dllpath $(abspath kernel/byterun) -cclib -lcoqrun -dllib -lcoqrun \
$(SYSMOD) -package camlp5.gramlib,compiler-libs.toplevel \
- tools/tolink.cmo $(LINKCMO) $(BYTEFLAGS) \
+ $(LINKCMO) $(BYTEFLAGS) \
$(COQTOP_BYTE_MLTOP) toplevel/coqtop_bin.ml -o $@
-tools/tolink.ml: Makefile.build Makefile.common
- $(SHOW)"ECHO... >" $@
- $(HIDE)echo "let static_modules = \""$(STATICPLUGINS)"\"" > $@
- $(HIDE)echo "let core_libs = \""$(LINKCMO)"\"" >> $@
- $(HIDE)echo "let core_objs = \""$(OBJSMOD)"\"" >> $@
-
# coqc
COQCCMO:=lib/clib.cma lib/cErrors.cmo toplevel/usage.cmo tools/coqc.cmo