mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
Temporary workarond for an upstream bug in Moo which causes failure when running with threads. #1330
This commit is contained in:
parent
4bc1c6e3d8
commit
2b8662cf0c
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,10 @@ 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";
|
||||||
|
|
||||||
|
### 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"
|
warn "Running Slic3r under Perl >= 5.16 is not supported nor recommended\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue