From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 017697ED9B for ; Mon, 19 May 2014 11:28:31 +0200 (CEST) Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of adrien@notk.org) identity=pra; client-ip=91.121.71.147; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="adrien@notk.org"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of adrien@notk.org designates 91.121.71.147 as permitted sender) identity=mailfrom; client-ip=91.121.71.147; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="adrien@notk.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@nautica.notk.org) identity=helo; client-ip=91.121.71.147; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="adrien@notk.org"; x-sender="postmaster@nautica.notk.org"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Am0FACbOeVNbeUeT/2dsb2JhbABZFoJwUYNBwR4BgQ8WdIIlAQEEASMPAUYFCwsYAgIFEw4CAg8FGB0BEzGIGwwJrSikHReBKo0mB4J1NoEVBJlZAYE9kV2DOTs X-IPAS-Result: Am0FACbOeVNbeUeT/2dsb2JhbABZFoJwUYNBwR4BgQ8WdIIlAQEEASMPAUYFCwsYAgIFEw4CAg8FGB0BEzGIGwwJrSikHReBKo0mB4J1NoEVBJlZAYE9kV2DOTs X-IronPort-AV: E=Sophos;i="4.98,866,1392159600"; d="scan'208";a="74537768" Received: from nautica.notk.org ([91.121.71.147]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 19 May 2014 11:28:30 +0200 Received: by nautica.notk.org (Postfix, from userid 1003) id A94E2C009; Mon, 19 May 2014 11:28:29 +0200 (CEST) Date: Mon, 19 May 2014 11:28:29 +0200 From: Adrien Nader To: Jonathan Protzenko Cc: caml-list@inria.fr Message-ID: <20140519092829.GA16283@notk.org> References: <5379CD53.6070202@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5379CD53.6070202@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [Caml-list] Self contained Windows executable? 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 > . > > 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