Hi. I am new to findlib and ocamlfind. I didn't manage to get my module linked into the CIL executables with the new build system, so I started looking at the Makefile, more specifically variables OCAMLFIND_DESTDIR and then CIL_DEFAULT_PLUGINS, which is used to write in the main folder of CIL the META file. Turns out that an easy way to specify (is this findlib standard?) to link a module (as a default-features module) is to create in the folder of that module (e.g., src/ext/zrapp) an empty file named "default". Hope this helps :)
If there's anything more to add please don't hesitate. Best regards, Alex On 10/10/2013 8:03 PM, Jonathan Kotker wrote: > I used to use --load, but then one of my beta-testers informed me that he > seemed to have > needed findlib, which spawned off my question to you. > > > On 10 October 2013 09:53, Gabriel Kerneis <gabr...@kerneis.info > <mailto:gabr...@kerneis.info>> wrote: > > On Thu, Oct 10, 2013 at 09:29:56AM -0700, Jonathan Kotker wrote: > > Since I am using Python to execute the Cilly driver, I managed to find > a > > way to dynamically set the environment variable OCAMLPATH (albeit > > temporarily) from within my Python script, and it works beautifully > once > > the OCaml code has been compiled. > > Glad it works for you. I realized later that you do not even need to > use findlib at all: you can also use --load path/to/plugin.cmxs > explicitly. The only downside is that you need to take care of loading > dependencies in the correct order in that case (whereas findlib will > figure it out, using META files). > > Best, > -- > Gabriel > > > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register> > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk > > > > _______________________________________________ > CIL-users mailing list > CIL-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/cil-users ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk _______________________________________________ CIL-users mailing list CIL-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cil-users