Fix the "explicit stack size" warning message on earlier versions of
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 13 Sep 2008 15:09:14 +0000 (15:09 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sat, 13 Sep 2008 15:09:14 +0000 (15:09 +0000)
Python that don't support it.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@3401 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Job.py

index 86886e04225eb586139ca002425477a6b9bd761a..594045c23c10dcab126fd1e90017577fd167d0fe 100644 (file)
@@ -278,8 +278,8 @@ else:
                 prev_size = threading.stack_size(stack_size*1024) 
             except AttributeError, e:
                 # Only print a warning if the stack size has been
-                # explicitely set.
-                if hasattr(SCons.Job, 'stack_size'):
+                # explicitly set.
+                if not explicit_stack_size is None:
                     msg = "Setting stack size is unsupported by this version of Python:\n    " + \
                         e.args[0]
                     SCons.Warnings.warn(SCons.Warnings.StackSizeWarning, msg)