Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove Parrot opts, add javaclass opt for JVM.
  • Loading branch information
jnthn committed Apr 15, 2013
1 parent 9e12e1c commit 0f2b9a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/NQP/Compiler.nqp
Expand Up @@ -14,10 +14,16 @@ my @clo := $nqpcomp.commandline_options();
@clo.push('setting=s');
@clo.push('setting-path=s');
@clo.push('module-path=s');
@clo.push('vmlibs=s');
@clo.push('no-regex-lib');
@clo.push('dynext=s');
@clo.push('stable-sc');
#?if parrot
@clo.push('vmlibs=s');
@clo.push('dynext=s');
#?endif
#?if jvm
@clo.push('javaclass=s');
$nqpcomp.addstage('classname', :after<start>);
#?endif

sub MAIN(@ARGS) {
# Enter the compiler.
Expand Down
3 changes: 2 additions & 1 deletion src/vm/jvm/HLL/Backend.nqp
Expand Up @@ -55,7 +55,8 @@ class HLL::Backend::JVM {
}

method jast($qast, *%adverbs) {
nqp::getcomp('qast').jast($qast, :classname(nqp::sha1('eval-at-' ~ nqp::time_n())));
my $classname := %*COMPILING<%?OPTIONS><javaclass> || nqp::sha1('eval-at-' ~ nqp::time_n());
nqp::getcomp('qast').jast($qast, :$classname);
}

method classfile($jast, *%adverbs) {
Expand Down

0 comments on commit 0f2b9a2

Please sign in to comment.