From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 4374EBBAF for ; Tue, 21 Dec 2010 14:18:13 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiQBANY3EE3RVdcpkGdsb2JhbACVbo4RCBUBAQEBCQkTEQQgpVSJdIIYhU4uiFcBAQMFhUQEiwI X-IronPort-AV: E=Sophos;i="4.60,208,1291590000"; d="scan'208";a="71209392" Received: from mail-ew0-f41.google.com ([209.85.215.41]) by mail3-smtp-sop.national.inria.fr with ESMTP; 21 Dec 2010 14:18:12 +0100 Received: by ewy27 with SMTP id 27so2846781ewy.0 for ; Tue, 21 Dec 2010 05:18:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=oPQzYBkHPhJANMnmC7ZQnigPAIP0hpE5wUrYk1ZXmAc=; b=RW02zonFBGv3/jQ3GOYjH6JgV48RQGApckkCFlnlscV1YwimE+huItQM0/U4TgChJH I8CagJfVnivBhx0ldshEYtlhyDfOgaABdbKjAoa0KAmWU1l9gXkQlKyJqd1e4r+qhyIO 43vEIC4bF/zI/x7V70SDDG9sNdVA28MPHKijE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=UEtl6krHIZC1RCD31TPLZRGyjCDGAi+jLgoy5mVqXMG8O5tUE8jm8kSPi9Zn5+7BdD pj/1pPcy16ul2CzJWhaFeWm9GHUXyynkPZAPPOKBm5qfpUKZoVEqScv+FLd7SBj+wVf8 BEHn41I8+ZPw0Hfqy33SOUQOdwvLz0WQ/QTSc= MIME-Version: 1.0 Received: by 10.213.114.147 with SMTP id e19mr3018767ebq.1.1292937492206; Tue, 21 Dec 2010 05:18:12 -0800 (PST) Received: by 10.213.34.140 with HTTP; Tue, 21 Dec 2010 05:18:11 -0800 (PST) In-Reply-To: References: <2D355E1A-E205-4FD6-82E9-A50E949C6B81@ezabel.com> <3746A668-E963-40AE-A441-B01517F1E13E@ezabel.com> <20101221085753.GA18588@aurora> Date: Tue, 21 Dec 2010 14:18:11 +0100 Message-ID: Subject: Re: [Caml-list] Lwt and OCamlMakefile From: Adrien To: caml-list@inria.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; le-gall:01 camlp:01 cmo:01 camlp:01 ocamlfind:01 ocamlfind:01 -predicates:01 syntax:01 syntax:01 eol:01 eol:01 cygwin:01 tarball:01 pcre:01 preprocess:01 On 21/12/2010, Sylvain Le Gall wrote: > On 21-12-2010, J=E9r=E9mie Dimino wrote: >> On Mon, Dec 20, 2010 at 09:36:39PM -0500, orbitz@ezabel.com wrote: >>> Thanks, I forgot to mention that I am setting that: >>> >>> (*pp camlp4o pa_lwt.cmo *) >> >> This one should work: >> >> (*pp camlp4o `ocamlfind query -i-format lwt` `ocamlfind query >> -predicates syntax,preprocessor -a-format -r lwt.syntax` *) >> > > It will work on Linux. On Windows, you will get a problem because > ocamlfind EOL (win32) doesn't match "`...`" EOL wrapping (cygwin). > > There was a similar problem with sexplib... > For windows, for sexplib and mikmatch_*str*, I do the preprocessing on linux[1] and put everything in a git branch which I then access on windows (I also love gitweb's ability to generate a tarball of the source :-) ). It also avoids the need to have a working camlp* on windows (msys). It doesn't work for mikmatch_pcre because it requires an additional library (for the "macro" feature) but it's been quite handy so far. Most credits for the script go to Julien Moutinho. [1] http://git.ocamlcore.org/cgi-bin/gitweb.cgi?p=3Dyypkg/yypkg.git;a=3Dblo= b;f=3Dpreprocess.sh -- Adrien Nader