caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Oasis and camlp4of
@ 2011-08-02 20:32 Philippe Veber
  2011-08-02 21:54 ` William Le Ferrand
  0 siblings, 1 reply; 5+ messages in thread
From: Philippe Veber @ 2011-08-02 20:32 UTC (permalink / raw)
  To: caml users

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

Hello,
how can I tell oasis that my syntax extension needs camlp4of instead of
camlp4o ? I tried to add a ByteOpt line for this:

Library pa_guizmin
  Path:               src/syntax
  Modules:            Pa_guizmin
  FindlibParent:      guizmin
  FindlibName:        syntax
  BuildDepends:       camlp4.lib, camlp4.quotations.o
  CompiledObject:     byte
  ByteOpt:            -pp camlp4of

and indeed myocamlbuild.ml now contains:

let package_default =
  {
     MyOCamlbuildBase.lib_ocaml =
       [("src/syntax/pa_guizmin", ["src/syntax"]); ("src/guizmin",
["src"])];
     lib_c = [];
     flags =
       [
          (["oasis_library_pa_guizmin_byte"; "ocaml"; "link"; "byte"],
            [(OASISExpr.EBool true, S [A "-pp"; A "camlp4of"])]);
          (["oasis_library_pa_guizmin_byte"; "ocaml"; "ocamldep"; "byte"],
            [(OASISExpr.EBool true, S [A "-pp"; A "camlp4of"])]);
          (["oasis_library_pa_guizmin_byte"; "ocaml"; "compile"; "byte"],
            [(OASISExpr.EBool true, S [A "-pp"; A "camlp4of"])])
       ];
     }
  ;;

But still, these options are not used when I compile using ocaml setup.ml-build

+ ocamlfind ocamldep -package camlp4.quotations.o -package camlp4.lib
-package camlp4.extend -modules src/syntax/pa_guizmin.ml >
src/syntax/pa_guizmin.ml.depends
File "src/syntax/pa_guizmin.ml", line 22, characters 3-5:
Error: Syntax error

Am I missing something ?

Cheers,
  Philippe.

[-- Attachment #2: Type: text/html, Size: 4774 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-08-03 12:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-02 20:32 [Caml-list] Oasis and camlp4of Philippe Veber
2011-08-02 21:54 ` William Le Ferrand
2011-08-02 22:22   ` Philippe Veber
2011-08-03  8:11     ` [Caml-list] " Sylvain Le Gall
2011-08-03 12:02       ` Philippe Veber

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).