Skip to content

Commit

Permalink
Allow niecza to be used from outside the source tree
Browse files Browse the repository at this point in the history
It's not installable, but you can symlink it into $PATH and it will be able to
find the standard libraries and support code.
  • Loading branch information
sorear committed Aug 19, 2010
1 parent b82b1c8 commit 14af68a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion niecza_eval
Expand Up @@ -3,7 +3,12 @@ use warnings;
use strict;
use 5.010;

use lib 'src';
BEGIN {
use FindBin;
use File::Spec;
unshift @INC, File::Spec->catdir($FindBin::RealBin, "src");
}

use CompilerDriver ':all';
use Getopt::Long;
use autodie ':all';
Expand Down
3 changes: 2 additions & 1 deletion src/CompilerDriver.pm
Expand Up @@ -13,9 +13,10 @@ use autodie ':all';

open ::NIECZA_OUT, ">&", \*STDOUT;

use lib 'STD_checkout';
BEGIN {
use File::Spec;
unshift @INC, File::Spec->catdir(
dirname(dirname($INC{'CompilerDriver.pm'})), 'STD_checkout');
$CursorBase::SET_PERL6LIB = [ File::Spec->curdir ];
}

Expand Down

0 comments on commit 14af68a

Please sign in to comment.