diff options
author | Greg Noel <GregNoel@tigris.org> | 2008-11-09 02:02:04 (GMT) |
---|---|---|
committer | Greg Noel <GregNoel@tigris.org> | 2008-11-09 02:02:04 (GMT) |
commit | cbce8f24f4e240f70a00d761c45a168d2d974a60 (patch) | |
tree | dab005d5c78a9aa66ad09541076ae8d723c3463e /src/engine/SCons/Tool/gcc.py | |
parent | 6d318b82077404a03e2bc2d1f4f069bdcabd0579 (diff) | |
download | SCons-cbce8f24f4e240f70a00d761c45a168d2d974a60.zip SCons-cbce8f24f4e240f70a00d761c45a168d2d974a60.tar.gz SCons-cbce8f24f4e240f70a00d761c45a168d2d974a60.tar.bz2 |
Issue 2228: discard stderr by using os.devnull
Diffstat (limited to 'src/engine/SCons/Tool/gcc.py')
-rw-r--r-- | src/engine/SCons/Tool/gcc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/gcc.py b/src/engine/SCons/Tool/gcc.py index 7d2b1b8..d074191 100644 --- a/src/engine/SCons/Tool/gcc.py +++ b/src/engine/SCons/Tool/gcc.py @@ -55,7 +55,8 @@ def generate(env): if env['CC']: #pipe = SCons.Action._subproc(env, [env['CC'], '-dumpversion'], pipe = SCons.Action._subproc(env, [env['CC'], '--version'], - stderr = subprocess.PIPE, + stdin = 'devnull', + stderr = 'devnull', stdout = subprocess.PIPE) if pipe.wait() != 0: return # -dumpversion was added in GCC 3.0. As long as we're supporting |