Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
make @*INC writable, by popular request (RT #75956)
  • Loading branch information
moritz committed Jun 23, 2010
1 parent b043847 commit f3d8af8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Perl6/Compiler.pir
Expand Up @@ -125,7 +125,7 @@ Perl6::Compiler - Perl6 compiler

.sub '' :anon :load :init
# Set up parser/actions.
.local pmc p6meta, nqpproto
.local pmc p6meta, nqpproto, true
p6meta = get_hll_global ['Mu'], '$!P6META'
nqpproto = p6meta.'new_class'('Perl6::Compiler', 'parent'=>'HLL::Compiler')
nqpproto.'language'('perl6')
Expand All @@ -136,6 +136,8 @@ Perl6::Compiler - Perl6 compiler
$P0 = getattribute nqpproto, '@cmdoptions'
push $P0, 'parsetrace'

true = get_hll_global ['Bool'], 'True'

# Set up @*INC from $PERL6LIB, languages/perl6/lib and ~/.perl6/lib
.local pmc env, interp, config
# Convert PERL6LIB first
Expand Down Expand Up @@ -168,6 +170,7 @@ Perl6::Compiler - Perl6 compiler
splice $P1, $P0, 0, 0
$P2 = new ['Array']
$P2.'!STORE'($P1)
setprop $P2, 'rw', true
set_hll_global '@INC', $P2
.end

Expand Down

0 comments on commit f3d8af8

Please sign in to comment.