Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove . from default @*INC
  • Loading branch information
moritz committed May 8, 2012
1 parent 30c0796 commit b09c6f8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/ChangeLog
Expand Up @@ -18,6 +18,7 @@ New in 2012.05
+ lib.pm
+ updated calling conventions for traits
+ implemented fff flip-flop operator; improvements to ff form also
+ removed current directory from default library search path

New in 2012.04.1
+ autvivification for arrays and hashes
Expand Down
1 change: 0 additions & 1 deletion src/core/terms.pm
Expand Up @@ -71,7 +71,6 @@ sub term:<time>() { nqp::p6box_i(pir::time__I()) }
}
@INC.push($VM<config><libdir> ~ $VM<config><versiondir> ~ '/languages/perl6/lib');
@INC.push('.'); # XXX: remove this when 'use lib' works fine

my $I := nqp::atkey(nqp::atkey(%*COMPILING, '%?OPTIONS'), 'I');
if pir::defined($I) {
if pir::does($I, 'array') {
Expand Down
3 changes: 2 additions & 1 deletion t/harness
Expand Up @@ -13,7 +13,8 @@ use Pod::Usage;

my $slash = $^O eq 'MSWin32' ? '\\' : '/';
$ENV{'HARNESS_PERL'} = ".${slash}perl6";
$ENV{'PERL6LIB'} = 'lib';
my $path_sep = $^O eq 'MSWin32' ? ';' : ':';
$ENV{'PERL6LIB'} = join $path_sep, qw/ lib . /;
use Test::Harness;
$Test::Harness::switches = '';

Expand Down
3 changes: 2 additions & 1 deletion tools/autounfudge.pl
Expand Up @@ -81,7 +81,8 @@ =head1 MISCELLANEA
'jobs=i' => \$threads_num,
or usage();

$ENV{PERL6LIB} = 'lib' unless $keep_env;
my $path_sep = $^O eq 'MSWin32' ? ';' : ':';
$ENV{PERL6LIB} = join($path_sep, qw/lib ./) unless $keep_env;

my @files;

Expand Down
2 changes: 1 addition & 1 deletion tools/update_passing_test_data.pl
Expand Up @@ -123,7 +123,7 @@ sub read_specfile {
sub get_harness {
return TAP::Harness->new({
verbosity => -2,
exec => [$^X, 'tools/perl6-limited.pl'],
exec => [$^X, 'tools/perl6-limited.pl', qw/-Ilib -I./],
merge => 1,
});
}
Expand Down

0 comments on commit b09c6f8

Please sign in to comment.