caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Adrien Nader <adrien@notk.org>
To: Jonathan Protzenko <jonathan.protzenko@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Self contained Windows executable?
Date: Mon, 19 May 2014 11:28:29 +0200	[thread overview]
Message-ID: <20140519092829.GA16283@notk.org> (raw)
In-Reply-To: <5379CD53.6070202@gmail.com>

On Mon, May 19, 2014, Jonathan Protzenko wrote:
> Shameless plug: there's a blog post at gagallium's which recaps the 
> various versions of OCaml on windows 
> <http://gallium.inria.fr/~scherer/gagallium/the-ocaml-installer-for-windows/>.
> 
> tl;dr :
> - the "ocaml" package from the cygwin distribution is a cygwin program 
> which generates cygwin executables -- these depend on cygwin1.dll to run
> - the installer from http://protz.github.com/ocaml-installer/ is a 
> native windows program, which generates native windows program -- these 
> do not need anything specific to execute.

And it works well. :) 
(although I had to do a couple weird things to have it really integrate
with win-builds)

> The second option does also require cygwin, however, as most of the 
> ecosystem (e.g. ocamlbuild) assumes a unix-like environment.

Nitpick: ocamlbuild doesn't really assume a unix-like environment. It
implements 'cp' through 'system("cp...")' (fixable) and runs
user-defined commands through Sys.command too which is cmd.exe on
Windows and has completely different escaping rules and therefore wraps
them first inside a call to an sh.exe. Unfortunately that last point
will require breaking compat to fix well (commands would be provided as
a string array à la Unix.create_process, not as a string).

-- 
Adrien Nader

      reply	other threads:[~2014-05-19  9:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-19  7:42 Andre Tampubolon
2014-05-19  7:55 ` David Allsopp
2014-05-19  7:56 ` Adrien Nader
     [not found] ` <E51C5B015DBD1348A1D85763337FB6D9E8EEFDA5@Remus.metastack.local>
     [not found]   ` <CAOEA5rZWJ+HfwkCGnLPbwwz7GVHZ6R7_ioZfyabFyNOuNnPhrg@mail.gmail.com>
2014-05-19  9:10     ` David Allsopp
2014-05-19  9:22       ` Jonathan Protzenko
2014-05-19  9:28         ` Adrien Nader [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140519092829.GA16283@notk.org \
    --to=adrien@notk.org \
    --cc=caml-list@inria.fr \
    --cc=jonathan.protzenko@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).