Skip to content

Commit

Permalink
support RAKUDOLIB env variable in addition to PERL6LIB
Browse files Browse the repository at this point in the history
fglock++ asked how sharing of PERL6LIB works between compilers in the presence of compiler-specific modules. I believe this should be part of the answer
  • Loading branch information
moritz committed Apr 26, 2012
1 parent 6bee9b6 commit 256e1db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/terms.pm
Expand Up @@ -41,6 +41,7 @@ sub term:<time>() { nqp::p6box_i(pir::time__I()) }
nqp::bindkey(pir::get_who__PP(PROCESS), '$CWD', $CWD);

my @INC;
@INC.push(%ENV<RAKUDOLIB>.split($VM<config><osname> eq 'MSWin32' ?? ';' !! ':')) if %ENV<RAKUDOLIB>;
@INC.push(%ENV<PERL6LIB>.split($VM<config><osname> eq 'MSWin32' ?? ';' !! ':')) if %ENV<PERL6LIB>;
try {
@INC.push((%ENV<HOME> // %ENV<HOMEDRIVE> ~ %ENV<HOMEPATH>) ~ '/.perl6/lib');
Expand Down

0 comments on commit 256e1db

Please sign in to comment.