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

Depend on any provided foreign_archives for ctypes stub generation #5475

Closed

Conversation

mbacarella
Copy link
Collaborator

This PR sequences ctypes stub generation to depend on foreign_archives if they're provided in the enclosing executable or library stanza.

The use case this supports is a C library vendored in your project with complicated build rules that must run to completion before the rest of ctypes evaluation can proceed, like a lengthy ./configure script that produces the vendored library's header files that must be included by the generated C stubs.

This doesn't change the dune ctypes extension language at all, and it should only fix functionality that was previously broken, so I don't believe it warrants bumping the ctypes extension version.

Signed-off-by: Michael Bacarella <m@bacarella.com>
@rgrinberg rgrinberg added this to the 3.0.3 milestone Feb 22, 2022
Copy link
Member

@rgrinberg rgrinberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Please add a CHANGES entry.

@rgrinberg rgrinberg closed this Feb 22, 2022
rgrinberg added a commit to rgrinberg/opam-repository that referenced this pull request Mar 1, 2022
…e-rpc, dune-rpc-lwt, dune-private-libs, dune-glob, dune-configurator, dune-build-info and dune-action-plugin (3.0.3)

CHANGES:

- Do not enable warnings 63-70 by default (ocaml/dune#5476, fixes ocaml/dune#5464, @rgrinberg)

- Allow %{read-lines} to introduce dynamic dependencies like %{read}. (ocaml/dune#5440,
  @anmonteiro)

- Look up `gmake` before `make` (ocaml/dune#5474, fixes ocaml/dune#5470, @rgrinberg)

- Handle empty output from `getconf` (ocaml/dune#5473 fixes ocaml/dune#5471, @mndrix)

- Depend on any provided `foreign_archives` for ctypes stub generation (ocaml/dune#5475,
  @mbacarella)
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.

2 participants