Issue 2482: Avoid wrapping decider unnecessarily
authorgregnoel <gregnoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sun, 20 Dec 2009 19:14:04 +0000 (19:14 +0000)
committergregnoel <gregnoel@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Sun, 20 Dec 2009 19:14:04 +0000 (19:14 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4571 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/SConf.py

index 313630b6a0697c93754572b68a38e1470d08ce58..133dab505301434de48a500c6b78a7bcc8767c61 100644 (file)
@@ -324,7 +324,8 @@ class SConfBuildTask(SCons.Taskmaster.AlwaysTask):
                                     env_decider=env.decide_source):
                         env_decider(dependency, target, prev_ni)
                         return True
-                    env.Decider(force_build)
+                    if env.decide_source.func_code is not force_build.func_code:
+                        env.Decider(force_build)
                 env['PSTDOUT'] = env['PSTDERR'] = s
                 try:
                     sconf.cached = 0