ocaml/dune

Add support for assembly language for foreign_stubs

Open

#3,342 opened on Apr 8, 2020

 (3 comments) (0 reactions) (0 assignees)OCaml (478 forks)github user discovery
good first issue

Repository metrics

Stars
 (1,882 stars)
PR merge metrics
 (Avg merge 1d 20h) (345 merged PRs in 30d)

Description

The doc for foreign_stubs says:

language specifies the source language, where c means C and cxx means C++. In future, more languages may be supported.

It would be nice to add support for .S files too ; generally they can just be passed to the underlying C compiler just fine ; I'm not fully sure of what should be the assembly flags. I think keeping the flags as C by default should generally work.

Contributor guide