caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
Cc: Anders Peter Fugmann <anders@fugmann.net>,
	caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Speeding up compilation
Date: Wed, 02 Apr 2014 23:42:17 +0200	[thread overview]
Message-ID: <1396474937.5787.5.camel@e130> (raw)
In-Reply-To: <9EC7944797D54A8E893837CB84026489@erratique.ch>

[-- Attachment #1: Type: text/plain, Size: 1331 bytes --]

The camlp4 executable is specified in the META file of camlp4, namely by
the "preprocessor" setting. So you could change that to camlp4.opt.

This is not configured by default because not every syntax extension can
be loaded into camlp4.opt, as it needs to be an cmxs. We would need here
some wrapper that first checks whether the cmxs files are available, and
switch to camlp4.opt only if this is the case.

Gerd

Am Mittwoch, den 02.04.2014, 22:34 +0200 schrieb Daniel Bünzli:
> 
> Le mercredi, 2 avril 2014 à 22:14, Anders Peter Fugmann a écrit :
> 
> > Is there any way to use a optimized version of camlp4.
> 
> Not sure that this will work as it it not mentioned in the documentation [1] but did you try to add
> 
> camlp4="camlp4.opt"  
> 
> in .opam/$SWITCH/lib/findlib.conf (or wherever it is on your machine).  
> 
> Best,
> 
> Daniel
> 
> [1] http://projects.camlcity.org/projects/dl/findlib-1.4.1/doc/ref-html/r775.html
> 
> 
> 

-- 
------------------------------------------------------------
Gerd Stolpmann, Darmstadt, Germany    gerd@gerd-stolpmann.de
My OCaml site:          http://www.camlcity.org
Contact details:        http://www.camlcity.org/contact.html
Company homepage:       http://www.gerd-stolpmann.de
------------------------------------------------------------


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

  parent reply	other threads:[~2014-04-02 21:42 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-02 20:14 Anders Peter Fugmann
2014-04-02 20:34 ` Daniel Bünzli
2014-04-02 20:43   ` Fabrice Le Fessant
2014-04-02 20:54     ` Yotam Barnoy
2014-04-03  2:10       ` Francois Berenger
2014-04-02 21:00     ` Anders Peter Fugmann
2014-04-02 20:49   ` Anders Peter Fugmann
2014-04-02 21:09     ` Daniel Bünzli
2014-04-02 21:42   ` Gerd Stolpmann [this message]
2014-04-03 21:00     ` Anders Peter Fugmann
2014-04-04 20:55       ` Gerd Stolpmann
2014-04-08 17:32 ` Pietro Abate

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=1396474937.5787.5.camel@e130 \
    --to=info@gerd-stolpmann.de \
    --cc=anders@fugmann.net \
    --cc=caml-list@inria.fr \
    --cc=daniel.buenzli@erratique.ch \
    /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).