Skip to content

Commit

Permalink
Fix confusion about what $prefix does
Browse files Browse the repository at this point in the history
Renamed RAKUDO_PRECOMP_PREFIX to the originally suggested RAKUDO_PREFIX,
because it does _not_ affect only precompilation, but more importantly
module loading itself.
  • Loading branch information
niner committed Dec 27, 2015
1 parent f71f962 commit 98966bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions docs/running.pod
Expand Up @@ -89,11 +89,12 @@ Controls whether .setting files are included in backtraces.

=over

=item C<RAKUDO_PRECOMP_PREFIX> (I<Str>; F<src/core/CompUnit/RepositoryRegistry.pm>)
=item C<RAKUDO_PREFIX> (I<Str>; F<src/core/CompUnit/RepositoryRegistry.pm>)

When this is set, Rakudo will perform all normal precompilation actions in the specified directory.
This is intended as an escape hatch for build-time bootstrapping issues, where Rakudo may be built
as an unprivileged user without write access to the runtime paths in NQP's config.
When this is set, Rakudo will look for the standard repositories (perl, vendor, site) in the
specified directory. This is intended as an escape hatch for build-time bootstrapping issues,
where Rakudo may be built as an unprivileged user without write access to the runtime paths
in NQP's config.

=item C<RAKUDO_PRECOMP_DIST> (F<src/core/CompUnit/PrecompilationRepository.pm>)

Expand Down
2 changes: 1 addition & 1 deletion src/core/CompUnit/RepositoryRegistry.pm
Expand Up @@ -75,7 +75,7 @@ class CompUnit::RepositoryRegistry {
}
#?endif

my $prefix := %*ENV<RAKUDO_PRECOMP_PREFIX> // nqp::p6box_s(
my $prefix := %*ENV<RAKUDO_PREFIX> // nqp::p6box_s(
nqp::concat(nqp::atkey(nqp::backendconfig,'prefix'),'/share/perl6')
);

Expand Down

0 comments on commit 98966bf

Please sign in to comment.