Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
simplify compfuffix/comptarget, tadzik++
  • Loading branch information
FROGGS committed Feb 27, 2014
1 parent 441d2ce commit 9fb996e
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions lib/Panda/Common.pm
Expand Up @@ -30,20 +30,9 @@ sub withp6lib(&what) is export {
}

sub compsuffix is export {
given $*VM<name> {
when 'parrot' {
return 'pir';
}
when 'jvm' {
return 'jar';
}
when 'moar' {
return 'moarvm';
}
default {
die($_ ~ ' is an unsupported backend VM.');
}
}
$*VM<name> eq 'moar'
?? 'moarvm'
!! comptarget
}

sub comptarget is export {
Expand Down

0 comments on commit 9fb996e

Please sign in to comment.