Skip to content

ocamldep: add -plugin and use compilerlibs to build#1015

Merged
lefessan merged 3 commits intoocaml:trunkfrom
lefessan:2017-01-18-ocamldep-plugin
Mar 2, 2017
Merged

ocamldep: add -plugin and use compilerlibs to build#1015
lefessan merged 3 commits intoocaml:trunkfrom
lefessan:2017-01-18-ocamldep-plugin

Conversation

@lefessan
Copy link
Contributor

This PR simply adds the option -plugin PLUGIN to ocamldep, as it might be useful to extend ocamldep with the same plugins as ocamlc.

It also bootstraps the compiler (in a separate commit), so that ocamlc can also use the new ability for plugins to define arguments.

@lefessan lefessan force-pushed the 2017-01-18-ocamldep-plugin branch from 97a29d5 to dde82f2 Compare January 18, 2017 22:57
@lefessan lefessan closed this Jan 19, 2017
@lefessan lefessan reopened this Jan 19, 2017
@lefessan lefessan closed this Jan 19, 2017
@lefessan lefessan reopened this Jan 19, 2017
@dra27
Copy link
Member

dra27 commented Jan 19, 2017

Possibly applying Holmes deduction - it's much easier to restart CI tests by signing into Travis (with your GitHub ID - the initial auth is very quick) and restarting the specific run!

@lefessan
Copy link
Contributor Author

The problem here is not Travis, but Appveyor, and I don't see any "restart build" button on Appveyor...

@dra27
Copy link
Member

dra27 commented Jan 19, 2017

AppVeyor seems to be clogged up - I don't know why

@lefessan lefessan force-pushed the 2017-01-18-ocamldep-plugin branch from 2389d36 to 8009c79 Compare January 19, 2017 09:25
@lefessan lefessan force-pushed the 2017-01-18-ocamldep-plugin branch from 8009c79 to a676907 Compare February 26, 2017 21:23
@lefessan
Copy link
Contributor Author

Rebased, no bootstrap anymore. I think the lack of -plugin in ocamldep is a bug and should be fixed for 4.05.0 .

@Octachron
Copy link
Member

Would it be possible to add an entry to ocamldep man page and manual description? Since plugins can modify dependencies, I concur with you that the lack of plugin support for ocamldep is a bug.

@shindere
Copy link
Contributor

shindere commented Feb 26, 2017 via email

@lefessan
Copy link
Contributor Author

lefessan commented Feb 27, 2017

What would the -plugin option do, actually?

@shindere It does the same as for ocamlc/ocamlopt, i.e. load a .cmxs/.cma into the tool, to extend its capability. It can do the same as ppx, but also work on the typedtree or add optimizations, if the hooks are available.

@shindere
Copy link
Contributor

shindere commented Feb 27, 2017 via email

@lefessan
Copy link
Contributor Author

There were already some hooks in the compiler and I added other ones, for example a plugin can add a hook to map on the Typedtree (for example, Pierrick's ocp-typechecker could re-check the types from a plugin). Plugins that work on the Parsetree can be shared with ocamldep. But I am sure to see how plugins could be used in ocamllex. ocamlcp and ocamloptp are supposed to follow arguments to ocamlc/ocamlopt, so they should support it already. I don't know for ocamlmklib.

@damiendoligez
Copy link
Member

Reviewed. OK for trunk and 4.05 when the manual is updated.

@lefessan lefessan merged commit b7b0a64 into ocaml:trunk Mar 2, 2017
@lefessan lefessan deleted the 2017-01-18-ocamldep-plugin branch March 2, 2017 15:46
lefessan added a commit that referenced this pull request Mar 2, 2017
* ocamldep: add -plugin argument, and use compilerlibs to build
@lefessan
Copy link
Contributor Author

lefessan commented Mar 2, 2017

Manual updated, PR squashed-merged in trunk, commit cherry-picked to 4.05.

camlspotter pushed a commit to camlspotter/ocaml that referenced this pull request Oct 17, 2017
* ocamldep: add -plugin argument, and use compilerlibs to build
stedolan pushed a commit to stedolan/ocaml that referenced this pull request Mar 21, 2023
* Printing changes

* More precise effects and coeffects when substituting variables

* Immediately split must_inline_and_duplicate bindings

* Full fix

* make fmt

* New CR + bugfix for ece downgrading

* fmt

* Add comments

* typo
EmileTrotignon pushed a commit to EmileTrotignon/ocaml that referenced this pull request Jan 12, 2024
* unified package overview/docs layout

Rearranges package overview and documentation such that:

* package_layout.eml defines the two sidebars and the
  content area
* there is a navigation element to switch between
  Overview (About) and Documentation (Docs)
* there is a placeholder element for the upcoming
  in-package search (to remind us how important
  this feature is and to show users that
  we have a plan where it goes)

Consequences:

* package overview page now has a collapsing sidebar
  with a button to slide it in on small screens
* package documentation now has a tablet (md) layout
  that shows the sidebar on-screen, instead of collapsed

* add text-sm which was lost during unification

* "Overview" instead of "About" since we have the space
EmileTrotignon pushed a commit to EmileTrotignon/ocaml that referenced this pull request Jan 12, 2024
* make package documentation link more obvious (ocaml#828)

* make documentation link more obvious

* minor style improvement

Co-Authored-By: Sabine Schmaltz <[email protected]>

* improve authors/maintainers display on package overview (ocaml#1001)

* refactor package urls, routes, and handlers (ocaml#999)

* refactor package urls, routes, and handlers
* move package redirects to redirection.ml

* Unify package overview and documentation layout (ocaml#1015)

* unified package overview/docs layout

Rearranges package overview and documentation such that:

* package_layout.eml defines the two sidebars and the
  content area
* there is a navigation element to switch between
  Overview (About) and Documentation (Docs)
* there is a placeholder element for the upcoming
  in-package search (to remind us how important
  this feature is and to show users that
  we have a plan where it goes)

Consequences:

* package overview page now has a collapsing sidebar
  with a button to slide it in on small screens
* package documentation now has a tablet (md) layout
  that shows the sidebar on-screen, instead of collapsed

* add text-sm which was lost during unification

* "Overview" instead of "About" since we have the space

* Add support for sitemap.xml

* Generate sitemap.xml by dream

* Apply suggestions from @cuihtlauac code review

Co-authored-by: Cuihtlauac Alvarado <[email protected]>

* Convert lists of urls to sequences and change names of functions

* Apply suggestions from @cuihtlauac code review 2

Co-authored-by: Cuihtlauac Alvarado <[email protected]>

* Delete subdomains URLs and URLs returning status code other than 200

* Apply suggestions from @cuihtlauac code review 3

Co-authored-by: Cuihtlauac Alvarado <[email protected]>

* Update PR

* formating

* do not touch playground asset

* Apply suggestions from @cuihtlauac code review 4

* Apply suggestions from @cuihtlauac code review 5

* Apply suggestions from @cuihtlauac code review 6

* Apply suggestions from @cuihtlauac code review 7

* Apply suggestions from @cuihtlauac code review 8

---------

Co-authored-by: Sabine Schmaltz <[email protected]>
Co-authored-by: sabine <[email protected]>
Co-authored-by: Cuihtlauac Alvarado <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants