[SCons] Fix 'command too long' error with MinGW compilation

This commit is contained in:
Ray Speth 2014-02-24 03:25:38 +00:00
parent ea040e1a5e
commit 608184ecea

View file

@ -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: