summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Platform/win32.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/SCons/Platform/win32.py')
-rw-r--r--src/engine/SCons/Platform/win32.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/engine/SCons/Platform/win32.py b/src/engine/SCons/Platform/win32.py
index 39c0ba8..b36d611 100644
--- a/src/engine/SCons/Platform/win32.py
+++ b/src/engine/SCons/Platform/win32.py
@@ -54,9 +54,9 @@ class TempFileMunge:
def __init__(self, cmd):
self.cmd = cmd
- def __call__(self, target, source, env):
+ def __call__(self, target, source, env, for_signature):
cmd = env.subst_list(self.cmd, 0, target, source)[0]
- if target is None or \
+ if for_signature or \
(reduce(lambda x, y: x + len(y), cmd, 0) + len(cmd)) <= 2048:
return self.cmd
else:
@@ -76,7 +76,6 @@ class TempFileMunge:
if env['SHELL'] and env['SHELL'] == 'sh':
native_tmp = string.replace(native_tmp, '\\', r'\\\\')
-
args = map(SCons.Util.quote_spaces, cmd[1:])
open(tmp, 'w').write(string.join(args, " ") + "\n")
return [ cmd[0], '@' + native_tmp + '\n' + rm, native_tmp ]