Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Pick correct IO::Spec when running on JVM.
  • Loading branch information
jnthn committed Sep 25, 2013
1 parent 7e2d8bc commit 7cede9d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/IO/Spec.pm
Expand Up @@ -16,11 +16,12 @@ my class IO::Spec {
);

# this is really just a way of getting $*OS when it's not in scope yet
my $submodule;
#?if parrot
my $submodule = %module{ nqp::atkey(nqp::atpos(pir::getinterp__P, pir::const::IGLOBALS_CONFIG_HASH), 'osname') };
$submodule = %module{ nqp::atkey(nqp::atpos(pir::getinterp__P, pir::const::IGLOBALS_CONFIG_HASH), 'osname') };
#?endif
#?if !parrot
my $submodule;
#?if jvm
$submodule = %module{ nqp::p6box_s(nqp::atkey(nqp::jvmgetproperties(), 'os.name')) };
#?endif
my $SPEC := IO::Spec.WHO{ $submodule // 'Unix' };

Expand Down

0 comments on commit 7cede9d

Please sign in to comment.