mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
Report when the threading is disabled and when the debugging output
is enabled. Two new environment variables are respected: SLIC3R_SINGLETHREADED and SLIC3R_DEBUGOUT.
This commit is contained in:
@@ -34,7 +34,11 @@ BEGIN {
|
||||
# in multi-threaded context at all.
|
||||
# A good interactive perl debugger is the ActiveState Komodo IDE
|
||||
# or the EPIC http://www.epic-ide.org/
|
||||
$have_threads = 0 if (defined($ENV{'SLIC3R_SINGLETHREADED'}) && $ENV{'SLIC3R_SINGLETHREADED'} == 1)
|
||||
$have_threads = 0 if (defined($ENV{'SLIC3R_SINGLETHREADED'}) && $ENV{'SLIC3R_SINGLETHREADED'} == 1);
|
||||
print "Threading disabled\n" if !$have_threads;
|
||||
|
||||
$debug = 1 if (defined($ENV{'SLIC3R_DEBUGOUT'}) && $ENV{'SLIC3R_DEBUGOUT'} == 1);
|
||||
print "Debugging output enabled\n" if $debug;
|
||||
}
|
||||
|
||||
warn "Running Slic3r under Perl 5.16 is neither supported nor recommended\n"
|
||||
|
||||
Reference in New Issue
Block a user