summaryrefslogtreecommitdiffstats
path: root/test/TaskMaster/bug_2811/fixture_dir/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'test/TaskMaster/bug_2811/fixture_dir/SConstruct')
-rw-r--r--test/TaskMaster/bug_2811/fixture_dir/SConstruct10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/TaskMaster/bug_2811/fixture_dir/SConstruct b/test/TaskMaster/bug_2811/fixture_dir/SConstruct
index c124902..d453368 100644
--- a/test/TaskMaster/bug_2811/fixture_dir/SConstruct
+++ b/test/TaskMaster/bug_2811/fixture_dir/SConstruct
@@ -10,6 +10,7 @@ This issue requires the following.
Nth target's implicit lists changing when compared to SConsign's which have been loaded.
7. This forces rebuild of source file and this propagates to massive recompile
"""
+import sys
import SCons.Tool
@@ -27,12 +28,15 @@ def _dwo_emitter(target, source, env):
targets = target + new_targets
return (targets, source)
+build_string = '$MYCOPY $SOURCE $TARGET'
-bld = Builder(action='cp $SOURCE $TARGET')
-env = Environment(BUILDERS={'Foo': bld})
+bld = Builder(action=build_string)
+
+env = Environment(BUILDERS={'Foo': bld}, MYCOPY="%s mycopy.py"%sys.executable)
+
+env['SHCCCOM'] = '$MYCOPY $SOURCE $TARGET && $MYCOPY $SOURCE ${TARGETS[1]}'
-env['SHCCCOM'] = 'cp $SOURCE $TARGET && cp $SOURCE ${TARGETS[1]}'
env['SHCCCOMSTR'] = env['SHCCCOM']