Version française
Home     About     Download     Resources     Contact us    
Browse thread
Lwt and OCamlMakefile
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Adrien <camaradetux@g...>
Subject: Re: [Caml-list] Lwt and OCamlMakefile
On 21/12/2010, Sylvain Le Gall <sylvain@le-gall.net> wrote:
> On 21-12-2010, Jérémie Dimino <jeremie@dimino.org> 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=yypkg/yypkg.git;a=blob;f=preprocess.sh

--

Adrien Nader