diff options
author | Steven Knight <knight@baldmt.com> | 2003-06-07 22:53:02 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-06-07 22:53:02 (GMT) |
commit | 8fc3c77d320fb435cb9268d31c34a58b18a58b54 (patch) | |
tree | a201a3fdb494c9143f75fdc13d19cb0fc5fd0390 /src/engine/SCons/Platform | |
parent | 418471d33635bb87b062ee77c565bc80c20b151c (diff) | |
download | SCons-8fc3c77d320fb435cb9268d31c34a58b18a58b54.zip SCons-8fc3c77d320fb435cb9268d31c34a58b18a58b54.tar.gz SCons-8fc3c77d320fb435cb9268d31c34a58b18a58b54.tar.bz2 |
When linking long command lines, use a '.lnk' suffix on the temporary file name. (Charles Crain)
Diffstat (limited to 'src/engine/SCons/Platform')
-rw-r--r-- | src/engine/SCons/Platform/win32.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/engine/SCons/Platform/win32.py b/src/engine/SCons/Platform/win32.py index bce50f4..6874d01 100644 --- a/src/engine/SCons/Platform/win32.py +++ b/src/engine/SCons/Platform/win32.py @@ -68,7 +68,11 @@ class TempFileMunge: # a bug in Win32 that will use a forward slash as a path # delimiter. Win32's link mistakes that for a command line # switch and barfs. - tmp = os.path.normpath(tempfile.mktemp()) + # + # We use the .lnk suffix for the benefit of the Phar Lap + # linkloc linker, which likes to append an .lnk suffix if + # none is given. + tmp = os.path.normpath(tempfile.mktemp('.lnk')) native_tmp = SCons.Util.get_native_path(tmp) # The sh shell will try to escape the backslashes in the |