develooper Front page | perl.perl6.users | Postings from July 2020

Re: Any sign of a fix for the 10 second compile time?

Thread Previous | Thread Next
Tom Browder
July 31, 2020 23:41
Re: Any sign of a fix for the 10 second compile time?
Message ID:
On Fri, Jul 31, 2020 at 5:38 PM ToddAndMargo via perl6-users
<> wrote:
> >> Todd, a couple of questions:
> >> 1. In your modules that change all the time, do have "use lib ...;"
> >> statements in any of them?
> >
> > No.  If I do, they crash
> # use lib '/home/linuxutil/p6lib';   # may not be precompiled; calling
> program must take care of this

Just for "-O fun", set up your modules as if they were to be public,
i.e., add a META6.jso for the module collection.
The collection being "/path/to/MyModules" and in MyModules create:

     META6.json # create it and add all your modules in it just like
you were going to publish the whole mess.
        # my modules as moved or duped from "/home/linuxutil/p6lib"
        00-meta-test.t # some basic test to check your META6.json file

Then, in dir "/path/to/MyModules" try:

    $ zef install .  # <== that's a DOT/PERIOD, i.e., the current directory

If that works, then you should be able to "use" them from your program.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About