From 608184ecea393130fdc27d3adb64470270d5ac2e Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 24 Feb 2014 03:25:38 +0000 Subject: [PATCH] [SCons] Fix 'command too long' error with MinGW compilation --- site_scons/buildutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site_scons/buildutils.py b/site_scons/buildutils.py index 382a9bd05..e0862d2a6 100644 --- a/site_scons/buildutils.py +++ b/site_scons/buildutils.py @@ -555,7 +555,7 @@ def getSpawn(env): Adapted from http://www.scons.org/wiki/LongCmdLinesOnWin32 """ - if sys.platform != 'win32' or env['toolchain'] != 'mingw': + if 'cmd.exe' not in env['SHELL'] or env['CXX'] == 'cl': return env['SPAWN'] try: