diff options
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/SConstruct b/SConstruct index f5aa0cd1bd..b9f2b7e2c4 100644 --- a/SConstruct +++ b/SConstruct @@ -170,26 +170,6 @@ if selected_platform in platform_list: else: env = env_base.Clone() - # Workaround for MinGW. See: - # http://www.scons.org/wiki/LongCmdLinesOnWin32 - if (os.name=="nt"): - import subprocess - def mySpawn(sh, escape, cmd, args, env): - newargs = ' '.join(args[1:]) - cmdline = cmd + " " + newargs - startupinfo = subprocess.STARTUPINFO() - startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW - proc = subprocess.Popen(cmdline, stdin=subprocess.PIPE, stdout=subprocess.PIPE, - stderr=subprocess.PIPE, startupinfo=startupinfo, shell = False, env = env) - data, err = proc.communicate() - rv = proc.wait() - if rv: - print "=====" - print err - print "=====" - return rv - env['SPAWN'] = mySpawn - env.extra_suffix="" CCFLAGS = env.get('CCFLAGS', '') |