diff options
author | Steven Knight <knight@baldmt.com> | 2003-05-06 05:58:31 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-05-06 05:58:31 (GMT) |
commit | aaf2cbb74e00fdc89da432d18e9fe40bb7de3b9d (patch) | |
tree | c399116a6a33ae9ad69d04dd43c2f272737c2074 /src/engine/SCons/Platform | |
parent | e591784eb29edfaf2760024f57ee1462f1bae1f3 (diff) | |
download | SCons-aaf2cbb74e00fdc89da432d18e9fe40bb7de3b9d.zip SCons-aaf2cbb74e00fdc89da432d18e9fe40bb7de3b9d.tar.gz SCons-aaf2cbb74e00fdc89da432d18e9fe40bb7de3b9d.tar.bz2 |
Refactor to use real Nodes for command-line attributes and eliminate PathList. (Charles Crain)
Diffstat (limited to 'src/engine/SCons/Platform')
-rw-r--r-- | src/engine/SCons/Platform/win32.py | 5 |
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 ] |