Added an explicit warning when user has old threads.pm version. #2348
This commit is contained in:
parent
38ecce0ce9
commit
632e3d3067
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ our $have_threads;
|
|||
BEGIN {
|
||||
use Config;
|
||||
$have_threads = $Config{useithreads} && eval "use threads; use threads::shared; use Thread::Queue; 1";
|
||||
warn "threads.pm >= 1.96 is required, please update\n" if $have_threads && $threads::VERSION < 1.96;
|
||||
|
||||
### temporarily disable threads if using the broken Moo version
|
||||
use Moo;
|
||||
|
|
Loading…
Reference in a new issue