Loading ...
Sorry, an error occurred while loading the content.
 

make ocamlscript use cmxa

Expand Messages
  • Ashish Agarwal
    I can t find which option tells ocamlscript to use a cmxa file. The script below causes ocamlscript to generate the command: ocamlfind ocamlopt -o prog -thread
    Message 1 of 1 , Jul 14, 2013
      I can't find which option tells ocamlscript to use a cmxa file. The script
      below causes ocamlscript to generate the command:

      ocamlfind ocamlopt -o prog -thread -I ~/code/utrome/_build/lib -syntax
      camlp4o -linkpkg -package camlp4,biocaml ocamlscript_main.ml

      but I need:

      ocamlfind ocamlopt -o prog -thread -I ~/code/utrome/_build/lib -syntax
      camlp4o -linkpkg -package camlp4,biocaml utrome.cmxa ocamlscript_main.ml

      where the utrome.cmxa file has been added. Thanks.


      --- foo .ml ---
      #!/usr/bin/env ocamlscript
      Common.verbose := true;
      Ocaml.ocamlflags := ["-thread"; "-I"; "~/code/utrome/_build/lib"];
      Ocaml.packs := ["biocaml"]
      --
      let _ = UTRome.Library.all()


      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.