diff --git a/src/core.c/CompUnit/PrecompilationStore/File.pm6 b/src/core.c/CompUnit/PrecompilationStore/File.pm6 index 1708a5a082b..5edacb4c3a9 100644 --- a/src/core.c/CompUnit/PrecompilationStore/File.pm6 +++ b/src/core.c/CompUnit/PrecompilationStore/File.pm6 @@ -309,7 +309,7 @@ class CompUnit::PrecompilationStore::File Str:D :$extension = '' ) { my &rename-block = { $path.rename(self!file($compiler-id, $precomp-id, :$extension)); }; - if $*DISTRO.is-win { + if Rakudo::Internals.IS-WIN { # If the rename attempts don't succeed, we'll end up # trying again one more time but not catching any failures. return if try-rename-n-times(&rename-block, 10); @@ -328,7 +328,7 @@ class CompUnit::PrecompilationStore::File $precomp-file.rename(self!file($compiler-id, $precomp-id)); self.remove-from-cache($precomp-id); }; - if $*DISTRO.is-win { + if Rakudo::Internals.IS-WIN { # If the rename attempts don't succeed, we'll end up # trying again one more time but not catching any failures. return if try-rename-n-times(&rename-block, 10); @@ -344,7 +344,7 @@ class CompUnit::PrecompilationStore::File my $repo-id-file := self!file($compiler-id, $precomp-id, :extension<.repo-id.tmp>); $repo-id-file.spurt($repo-id); my &rename-block = { $repo-id-file.rename(self!file($compiler-id, $precomp-id, :extension<.repo-id>)); }; - if $*DISTRO.is-win { + if Rakudo::Internals.IS-WIN { # If the rename attempts don't succeed, we'll end up # trying again one more time but not catching any failures. return if try-rename-n-times(&rename-block, 10); diff --git a/src/core.c/REPL.pm6 b/src/core.c/REPL.pm6 index fc7bb7c581d..6cf058d02f1 100644 --- a/src/core.c/REPL.pm6 +++ b/src/core.c/REPL.pm6 @@ -44,7 +44,7 @@ do { my &add_history = $WHO<&add_history>; my $Readline = try { require Readline } my $read = $Readline.new; - if ! $*DISTRO.is-win { + if !Rakudo::Internals.IS-WIN { $read.read-init-file("/etc/inputrc"); $read.read-init-file(%*ENV // "~/.inputrc"); } @@ -238,7 +238,7 @@ do { say 'Continuing without tab completions or line editor'; say 'You may want to consider using rlwrap for simple line editor functionality'; } - elsif !$*DISTRO.is-win and !( %*ENV<_>:exists and %*ENV<_>.ends-with: 'rlwrap' ) { + elsif !Rakudo::Internals.IS-WIN and !( %*ENV<_>:exists and %*ENV<_>.ends-with: 'rlwrap' ) { say 'You may want to `zef install Readline` or `zef install Linenoise` or use rlwrap for a line editor'; } say ''; @@ -321,7 +321,7 @@ do { say $no-exit ?? "Type 'exit' to leave" - !! $*DISTRO.is-win + !! Rakudo::Internals.IS-WIN ?? "To exit type 'exit' or '^Z'" !! "To exit type 'exit' or '^D'";