Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Streamline handling compiling options
  • Loading branch information
lizmat committed Jan 13, 2016
1 parent a192ec5 commit 7f592ce
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/core/Rakudo/Internals.pm
Expand Up @@ -715,10 +715,13 @@ my class Rakudo::Internals {
$escaped
}

# return whether running with --ll-exception
# easy access to compile options
my Mu $compiling-options := nqp::atkey(%*COMPILING, '%?OPTIONS');
$compiling-options := nqp::hash() if nqp::isnull($compiling-options);

# running with --ll-exception
method LL-EXCEPTION() {
my Mu $opts := nqp::atkey(%*COMPILING, '%?OPTIONS');
!nqp::isnull($opts) && !nqp::isnull(nqp::atkey($opts, 'll-exception'))
nqp::existskey($compiling-options, 'll-exception')
?? '--ll-exception'
!! Empty
}
Expand Down

0 comments on commit 7f592ce

Please sign in to comment.