Skip to content

Commit

Permalink
Add a way to disable SC compilation for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jan 13, 2013
1 parent 93693b2 commit 79ffc64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/QAST/JASTCompiler.nqp
@@ -1,6 +1,9 @@
use JASTNodes;
use QASTNode;

# Should we try handling all the SC stuff?
my $ENABLE_SC_COMP := 0;

# Some common types we'll need.
my $TYPE_TC := 'Lorg/perl6/nqp/runtime/ThreadContext;';
my $TYPE_CU := 'Lorg/perl6/nqp/runtime/CompilationUnit;';
Expand Down Expand Up @@ -1647,7 +1650,7 @@ class QAST::CompilerJAST {
my $comp_mode := $cu.compilation_mode;
my @pre_des := $cu.pre_deserialize;
my @post_des := $cu.post_deserialize;
if $comp_mode || @pre_des || @post_des {
if $ENABLE_SC_COMP && ($comp_mode || @pre_des || @post_des) {
# Create a block into which we'll install all of the other
# pieces.
my $block := QAST::Block.new( :blocktype('raw') );
Expand Down

0 comments on commit 79ffc64

Please sign in to comment.