Remove no longer needed WAF command execution win32 workaround
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Sat, 17 Jan 2009 16:57:42 +0000
changeset 4103 a7dfdc073085
parent 4102 3a5b1ed17edc
child 4104 19147674758a
Remove no longer needed WAF command execution win32 workaround
wscript
--- a/wscript	Fri Jan 16 18:52:00 2009 +0000
+++ b/wscript	Sat Jan 17 16:57:42 2009 +0000
@@ -318,21 +318,6 @@
             obj.name = obj.target
 
 
-##
-## This replacement spawn function increases the maximum command line length to 32k
-##
-def _exec_command_interact_win32(s):
-    if Params.g_verbose:
-        print s
-    startupinfo = subprocess.STARTUPINFO()
-    startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
-    proc = subprocess.Popen(s, shell=False, startupinfo=startupinfo)
-    stat = proc.wait()
-    if stat & 0xff:
-        return stat | 0x80
-    return stat >> 8
-
-
 def build(bld):
     if Options.options.no_task_lines:
         import Runner
@@ -340,10 +325,6 @@
             pass
         Runner.printout = null_printout
 
-    if sys.platform == 'win32':
-        import Runner
-        Runner.exec_command = _exec_command_interact_win32
-
     Options.cwd_launch = bld.path.abspath()
     bld.create_ns3_program = types.MethodType(create_ns3_program, bld)
     bld.create_suid_program = types.MethodType(create_suid_program, bld)