Commit Graph

2536 Commits

Author SHA1 Message Date
Rudi Grinberg 6657247897
Merge pull request #1193 from rgrinberg/virtual-disable-archives
Disable archives for virtual libraries
2018-09-01 10:54:03 +03:00
Rudi Grinberg 918ae9ab0a Disable archives for virtual libraries
And refactor the archive building to allow for external o files to be provided

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-09-01 10:53:30 +03:00
Rudi Grinberg 6da1f199f7
Merge pull request #1188 from rgrinberg/wrapped-transition
Fix #985
2018-08-31 19:12:16 +03:00
Rudi Grinberg add287f864
Merge pull request #1199 from aantron/patch-1
Fix typo in Configurator docs
2018-08-31 19:07:16 +03:00
Rudi Grinberg 3c89b6c131 Require dune lang 1.2 for transitioning wraps
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:05:17 +03:00
Rudi Grinberg 18abaa7def Simplify code using Module.dir
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:05:17 +03:00
Rudi Grinberg 28b311cf95 Clarifying comment about appending wrapped compat modules
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:05:17 +03:00
Rudi Grinberg 8449b46bc1 Fix tests
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:05:17 +03:00
Rudi Grinberg 96e3448228 Add documentation and change log entry
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:05:17 +03:00
Rudi Grinberg 868ecbc632 Change deprecated modules in a separate directory
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg ba1b3f8d24 Set intf to None
deprecated modules don't really have interfaces

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg 161ca64030 Add Cm_kind.to_sexp conversion
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg 366c102aa0 Add .mli to one of transitioned modules
Somehow this removes the deprecation

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg dfd3b1083c Handle case when module alias exists
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg c8970ab977 Change terminology to wrapped_compat
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg f47834d80b Add modules_without_implementation example to wrapped transition mode
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg 8acca614da Use dedicated compilation context for deprecated modules
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg d0b937c25e Use proper sum type wrapped.t
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg f9ad608e8c Fix deprecation attribute for transition modules
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg 492286ba12 Don't hardcode the transition message to be date based
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Rudi Grinberg d1d7672e96 wrapped transition mode
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 19:04:48 +03:00
Etienne Millon 2cd796f405
Merge pull request #1196 from ocaml/fix-1173
When there are extra parentheses, display the exn
2018-08-31 17:59:20 +02:00
Anton Bachin f44b83f23b Fix typo in Configurator docs
Signed-off-by: Anton Bachin <antonbachin@yahoo.com>
2018-08-31 10:56:37 -05:00
Etienne Millon f8f9db2d9c When there are extra parentheses, display the exn
Dune tries to be helpful when there are extra parentheses, but sometimes
it is a bit too eager. This wraps the exception so that the original one
is displayed.

Closes #1173
Closes #1181

Signed-off-by: Etienne Millon <me@emillon.org>
2018-08-31 17:05:06 +02:00
Etienne Millon 6fbb93d086 Move the "try: " part to hints themselves
Signed-off-by: Etienne Millon <me@emillon.org>
2018-08-31 17:04:22 +02:00
Etienne Millon 7c0a9a84ba Refactor Report_error module
- make `printer` type abstract
- make a builtin printer

Signed-off-by: Etienne Millon <me@emillon.org>
2018-08-31 17:04:22 +02:00
Rudi Grinberg 7cd183877e
Merge pull request #1202 from rgrinberg/lib-info-abstract
Make Lib.Info.t abstract
2018-08-31 17:27:45 +03:00
Rudi Grinberg b01c22f9b7 Make Lib.Info.t abstract
It's not used outside the Lib module anyway

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-31 15:43:38 +03:00
Rudi Grinberg 6dedc68186
Merge pull request #1197 from rgrinberg/install-rules-virtual-libs
Adjust install files for virtual libraries
2018-08-31 13:51:26 +03:00
Jérémie Dimino 5cad714100
Promote a subset of the files + emacs integration (#1192)
- add support for promoting a selected list of files
- add an emacs mode with helpers for promoting the correction for the current buffer

Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-08-31 11:12:49 +01:00
Jérémie Dimino d8e474c716
Fix preprocessing action in src/dune (#1200)
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-08-31 10:58:28 +01:00
Rudi Grinberg 1ded621dc7 Install c/cxx stubs for virtual libraries
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-30 14:36:03 +03:00
Rudi Grinberg 44ca7f0bbf Adjust installed artifacts for virtual libraries
* Virtual libraries do not install archive files
* Virtual libraries should install .o files

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-30 14:24:04 +03:00
Rudi Grinberg 265adc8eae
Add fields for variants (#1148)
Add variants fields but guard them behind an extension
2018-08-29 15:41:28 +03:00
Jeremie Dimino 4518c79f42 Update changelog
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
2018-08-28 18:11:37 +01:00
François Bobot 7f09979853 Adds support for findlib.dynload
which allows to easily dynlink packages and their dependencies.
     Dune is needed for putting in the binary the list of package
     statically linked.

Signed-off-by: François Bobot <francois.bobot@cea.fr>
2018-08-28 18:10:14 +01:00
Rudi Grinberg fc0d99c9bb
Merge pull request #1179 from rgrinberg/lib-name
Introduce Lib_name.t and Lib_name.Local.t types
2018-08-28 13:33:17 +03:00
Rudi Grinberg f700de1572 Add ~loc to of_string_exn
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-28 13:30:40 +03:00
Rudi Grinberg 81dda61f23 Fix cases where we'd map over lib name lists just to convert them to strings
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-28 13:30:40 +03:00
Rudi Grinberg 6b55c21373 Remove an overly eager lib name to string conversion
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-28 13:30:40 +03:00
Rudi Grinberg 52238a35f0 Minimize use of Lib_name.of_local
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-28 13:30:40 +03:00
Rudi Grinberg 071c2377de Introduce Lib_name.t and Lib_name.Local.t types
These types help distinguish external and internal library names

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-28 13:30:40 +03:00
Rudi Grinberg 1cfd805404
Merge pull request #1175 from rgrinberg/1166
Fix 1166
2018-08-28 12:28:48 +03:00
Rudi Grinberg dc20970763 Update CHANGES
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-28 12:20:22 +03:00
Rudi Grinberg 72c322d75b Fix #1166 by not using Path in configurator
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-28 12:20:22 +03:00
Rudi Grinberg d522acb1e8 Add test case to show regression 1166
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-28 12:20:22 +03:00
Rudi Grinberg c0eebce1d2
Merge pull request #1183 from rgrinberg/private-dir-contents
Make types in Dir_contents more private
2018-08-27 18:52:47 +03:00
Rudi Grinberg 9a9d45e7d2 Make types in Dir_contents more private
Make records privates and add internal signature to Library_modules

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-27 14:42:36 +03:00
Rudi Grinberg 9d61c59500 Pun a few record fields in Process
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2018-08-27 12:42:02 +03:00
Rudi Grinberg 988a571c65
Merge pull request #1177 from rgrinberg/cleanup-take-drop-split
Introduce String.{take,drop,split_n}
2018-08-26 15:10:17 +03:00