diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-01-17 14:32:17 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-01-17 14:32:17 +0400 |
commit | 7a85ad51bfc302748b912ec6b69f647b6fd131b7 (patch) | |
tree | ffc3ffa64a49d47b05283527b94273d882ececdf /build_files/scons/tools | |
parent | 62f440a0b2d9a074de24ef0891d03c536f25cc1a (diff) |
Compilation error when using mingw+scons
Error was caused by boost library (which doesn't seem to be working with Cycles too
when compiling with mingw). Switched mingw to use TR1 unordered collections. Also,
there was re-declaration of strcasecmp when mingw is used.
Additional changes are related on using own process spawning when BF_TOOLSET is set to
mingw. Seems to be working fine now (i've got too long command line error) and no
warning are supressing now (as it was told in comment for commented own process spawning).
Diffstat (limited to 'build_files/scons/tools')
-rw-r--r-- | build_files/scons/tools/btools.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/build_files/scons/tools/btools.py b/build_files/scons/tools/btools.py index 296d518596a..a71ab04b888 100644 --- a/build_files/scons/tools/btools.py +++ b/build_files/scons/tools/btools.py @@ -222,15 +222,15 @@ class ourSpawn: newargs = string.join(args[1:], ' ') cmdline = cmd + " " + newargs startupinfo = subprocess.STARTUPINFO() - startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW + #startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW proc = subprocess.Popen(cmdline, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, startupinfo=startupinfo, shell = False) data, err = proc.communicate() rv = proc.wait() - if rv: - print "=====" - print err - print "=====" + if data: + print(data) + if err: + print(err) return rv def SetupSpawn( env ): |