Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a %.cmxs target for plugins #4651

Closed
vicuna opened this issue Nov 26, 2008 · 2 comments
Closed

Add a %.cmxs target for plugins #4651

vicuna opened this issue Nov 26, 2008 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Nov 26, 2008

Original bug ID: 4651
Reporter: @dbuenzli
Assigned to: ertai
Status: closed (set by ertai on 2010-07-22T09:42:04Z)
Resolution: fixed
Priority: normal
Severity: feature
Version: 3.11.0+beta
Fixed in version: 3.12.0+beta1 or 3.12.0+rc1
Category: -for ocamlbuild use https://github.com/ocaml/ocamlbuild/issues
Monitored by: mehdi dario @ygrek @hcarty

Bug description

Please add a %.cmxs target that allows to build a plugin for a module or a library by simply typing

ocamlbuild mymodule.cmxs

Thanks,

Daniel

@vicuna
Copy link
Author

vicuna commented Mar 29, 2010

Comment author: mehdi

Any news on this?

@vicuna
Copy link
Author

vicuna commented Apr 17, 2010

Comment author: ertai

I've just pushed the support for cmxs in ocamlbuild in trunk and the branch 3.11.

Using it should be straightforward but here is a recap of new rules:

  • turn a library into a shared one (use -linkall): .cmxa -> .cmxs
  • turn a unit into a shared lib: .cmx -> .cmxs
  • link a list of units as a shared lib: .mldylib -> .cmxs

The tag "linkall" allows to add the -linkall flag.
All these rules take care of .a/.o/.so as well.
Profiling variants exists as well.

I have made little testing so please test this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant