mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Added an explicit warning when user has old threads.pm version. #2348
This commit is contained in:
@@ -19,6 +19,7 @@ our $have_threads;
|
|||||||
BEGIN {
|
BEGIN {
|
||||||
use Config;
|
use Config;
|
||||||
$have_threads = $Config{useithreads} && eval "use threads; use threads::shared; use Thread::Queue; 1";
|
$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
|
### temporarily disable threads if using the broken Moo version
|
||||||
use Moo;
|
use Moo;
|
||||||
|
|||||||
Reference in New Issue
Block a user