Temporary workarond for an upstream bug in Moo which causes failure when running with threads. #1330

This commit is contained in:
Alessandro Ranellucci 2013-07-24 10:06:02 +02:00
parent 4bc1c6e3d8
commit 2b8662cf0c

View file

@ -19,6 +19,10 @@ our $have_threads;
BEGIN {
use Config;
$have_threads = $Config{useithreads} && eval "use threads; use threads::shared; use Thread::Queue; 1";
### temporarily disable threads if using the broken Moo version
use Moo;
$have_threads = 0 if $Moo::VERSION == 1.003000;
}
warn "Running Slic3r under Perl >= 5.16 is not supported nor recommended\n"