Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* ocamlbuild: full path for camlp4 preprocessors?
@ 2010-08-24  8:29 Hendrik Tews
  0 siblings, 0 replies; only message in thread
From: Hendrik Tews @ 2010-08-24  8:29 UTC (permalink / raw)
  To: caml-list

Hi,

I have another ocamlbuild question: How can I tell ocamlbuild to
use the full path for the camlp4 preprocessors?

I just compiled ocaml 3.12 to test if it compiles my software. So
I do

   /soft/ocaml-3.12.0/bin/ocamlbuild target.native

and ocamlbuild is clever enough to prefix all commands with
/soft/ocaml-3.12.0/bin to make sure the 3.12 compiler
is used. But then comes this file that needs camlp4 and
ocamlbuild runs

   /soft/ocaml-3.12.0/bin/ocamldep.opt -pp camlp4orf -modules xx.ml > ...

which of course fails because camlp4orf is version 3.11.2 from
/usr/bin.

How can I tell ocamlbuild to also use the full path for camlp4
preprocessors?

(I could put /soft/ocaml-3.12.0/bin into PATH, but there should
be a way to solve this problem without changing PATH: It should
be possible to run ocamlbuild without putting the ocaml-bin-dir
into PATH)

Thanks,

Hendrik Tews


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-08-24  8:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-24  8:29 ocamlbuild: full path for camlp4 preprocessors? Hendrik Tews

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox