summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Gross <grossag@vmware.com>2019-12-03 16:37:51 (GMT)
committerAdam Gross <grossag@vmware.com>2019-12-03 20:57:46 (GMT)
commit9d07ea27a4dda3ff51a67a7dd2af029fea3da0bc (patch)
tree75fa5e693edc5663e46615a0c954519dd7a3400e
parent5711640410fa2b4a4dc3deb02e262021f230778b (diff)
downloadSCons-9d07ea27a4dda3ff51a67a7dd2af029fea3da0bc.zip
SCons-9d07ea27a4dda3ff51a67a7dd2af029fea3da0bc.tar.gz
SCons-9d07ea27a4dda3ff51a67a7dd2af029fea3da0bc.tar.bz2
Fix some tests
-rw-r--r--src/engine/SCons/Action.py19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/engine/SCons/Action.py b/src/engine/SCons/Action.py
index 2dea8cc..14a5a83 100644
--- a/src/engine/SCons/Action.py
+++ b/src/engine/SCons/Action.py
@@ -979,14 +979,23 @@ class CommandAction(_ActionAction):
icd = env.get('IMPLICIT_COMMAND_DEPENDENCIES', True)
if is_String(icd) and icd[:1] == '$':
icd = env.subst(icd)
+
+ # Several tests depend upon this function disambiguating the source and
+ # target lists.
+ # TODO: Is this a bad idea?
+ for s in source:
+ s.disambiguate()
+ for t in target:
+ t.disambiguate()
+
if not icd or icd in ('0', 'None'):
return []
- from SCons.Subst import SUBST_SIG
- # Avoid circular and duplicate dependencies by not provide source and
- # target to subst_list. This causes references to $SOURCES, $TARGETS,
- # and all related variables to disappear.
- cmd_list = env.subst_list(self.cmd_list, SUBST_SIG, [], [])
+ # Avoid circular and duplicate dependencies by not provide source,
+ # target, or executor to subst_list. This causes references to
+ # $SOURCES, $TARGETS, and all related variables to disappear.
+ from SCons.Subst import SUBST_SIG
+ cmd_list = env.subst_list(self.cmd_list, SUBST_SIG)
res = []
for cmd_line in cmd_list: