summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Environment.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-11-25 17:22:28 (GMT)
committerSteven Knight <knight@baldmt.com>2002-11-25 17:22:28 (GMT)
commit22c249b07f1831b86aca87ba1728a0cf19884b80 (patch)
treeda3663b86e140824200771d866cfa6a01ee724d3 /src/engine/SCons/Environment.py
parenteaef3f7c8cd75bd92b75233bfbee8589f2b9e82b (diff)
downloadSCons-22c249b07f1831b86aca87ba1728a0cf19884b80.zip
SCons-22c249b07f1831b86aca87ba1728a0cf19884b80.tar.gz
SCons-22c249b07f1831b86aca87ba1728a0cf19884b80.tar.bz2
Make env.SideEffect work for Dir nodes. (Anthony Roach)
Diffstat (limited to 'src/engine/SCons/Environment.py')
-rw-r--r--src/engine/SCons/Environment.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/SCons/Environment.py b/src/engine/SCons/Environment.py
index c0b3255..ec8f1eb 100644
--- a/src/engine/SCons/Environment.py
+++ b/src/engine/SCons/Environment.py
@@ -374,7 +374,10 @@ class Environment:
targets = SCons.Node.arg2nodes(target, self.fs.File)
for side_effect in side_effects:
- if side_effect.builder is not None:
+ # A builder of 1 means the node is supposed to appear
+ # buildable without actually having a builder, so we allow
+ # it to be a side effect as well.
+ if side_effect.builder is not None and side_effect.builder != 1:
raise UserError, "Multiple ways to build the same target were specified for: %s" % str(side_effect)
side_effect.add_source(targets)
side_effect.side_effect = 1