From 6950ce3bcfe4220914b4cd0a257c1dcb827a1554 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Mon, 26 Sep 2016 12:57:15 +0200 Subject: [PATCH] Report when the threading is disabled and when the debugging output is enabled. Two new environment variables are respected: SLIC3R_SINGLETHREADED and SLIC3R_DEBUGOUT. --- lib/Slic3r.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Slic3r.pm b/lib/Slic3r.pm index 7dfa9063fe..44b2a9bf59 100644 --- a/lib/Slic3r.pm +++ b/lib/Slic3r.pm @@ -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"