From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 9473FBBB7 for ; Tue, 14 Oct 2008 11:25:46 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsYDANcB9EjAXQImiGdsb2JhbACTYAEBARUiqWiBbA X-IronPort-AV: E=Sophos;i="4.33,408,1220220000"; d="scan'208";a="16060189" Received: from discorde.inria.fr ([192.93.2.38]) by mail2-smtp-roc.national.inria.fr with ESMTP; 14 Oct 2008 11:25:46 +0200 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id m9E9PiQk023824 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Tue, 14 Oct 2008 11:25:45 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgwCANkC9EhQW+UCgWdsb2JhbACTYAEBFiIEqWCBbA X-IronPort-AV: E=Sophos;i="4.33,408,1220220000"; d="scan'208";a="30316582" Received: from main.gmane.org (HELO ciao.gmane.org) ([80.91.229.2]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/AES256-SHA; 14 Oct 2008 11:25:27 +0200 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Kpg9e-0001Zv-4F for caml-list@inria.fr; Tue, 14 Oct 2008 09:25:26 +0000 Received: from ks300734.kimsufi.com ([91.121.65.225]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Oct 2008 09:25:26 +0000 Received: from sylvain by ks300734.kimsufi.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 14 Oct 2008 09:25:26 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Sylvain Le Gall Subject: Re: Road to native windows OCaml... Date: Tue, 14 Oct 2008 09:25:18 +0000 (UTC) Message-ID: References: <200810131935.53365.kuba@mareimbrium.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ks300734.kimsufi.com User-Agent: slrn/pre0.9.9-102 (Linux) Sender: news X-Miltered: at discorde with ID 48F46598.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; le-gall:01 ocaml:01 ocaml:01 mingw:01 cygwin:01 compilation:01 hacked:01 mingw:01 quicker:98 quicker:98 wrote:01 compile:01 sed:01 sed:01 bat:02 On 13-10-2008, Kuba Ober wrote: > I've looked briefly at what it'd take to have OCaml > fully working natively (with mingw/VS), without any Cygwin > needed for compilation. > > What I've surmised is this: > > 1. I need some "hacked up" make implementation, good enough just > to let it build; this would be a-la web2c in concept. This "make" > would implement bits and pieces of make, bash and sed -- just > the bare minimum needed to get it going. The goal is for people to > have bare mingw or VC and have OCaml build for them. > The functionality needed is quite minimal, so requiring people to > actually pull full sed, bash and make would not be necessary. > I would prototype it in Qt (it's quicker that way), > and then port it to "bare" C++ as time permits. > You should consider enhancing what is already existing: ocamlbuild is here to bootstrap already some piece of the OCaml build process. I think that it will be quicker to extend ocamlbuild to be able to compile everything well than to recreate a "make". Take a look at the build script in build/*.sh to see what is needed. These are fairly simple script, that can be easily transform automatically into .bat file. Regards, Sylvain Le Gall