[ITA] ocaml 4.14.0
Corinna Vinschen
corinna-cygwin@cygwin.com
Wed Aug 24 09:20:28 GMT 2022
On Aug 23 20:00, David Allsopp wrote:
> Jon Turney wrote:
> > I'm confused here: /usr/lib/ocaml/camlheaderd[di] look like executables
> > (according to file etc.)
> >
> > If they genuinely aren't, then perhaps they shouldn't have execute
> > permission (which is I think what is causing them to be caught by that
> > piece of code in cygport...)
>
> ocamlc won't care about the executable bit, but these files are _data_
> and so it will care if they end up with a .exe extension, because they
> are open'd not exec'd.
>
> The files themselves form the start of executables produced by ocamlc.
> For both Cygwin and native Windows, it's a tiny C program responsible
> for locating ocamlrun (on Unix, it's just a shebang line) and the
> bytecode itself gets appended.
Why is ocaml for Cygwin not produing shebang files as well? After all,
we're trying to be as Unix-compatible as possible.
Corinna
More information about the Cygwin-apps
mailing list