diff options
author | Nico Weber <thakis@chromium.org> | 2015-03-10 16:09:49 (GMT) |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2015-03-10 16:09:49 (GMT) |
commit | 51f06facf46e7a1a5338a4ca2ec9b8441c44c405 (patch) | |
tree | 287b82d05824fe87f513b1e32727193d92a071ea | |
parent | c48737974f4de3b1883e6a9335b47bdbfc10700f (diff) | |
download | Ninja-51f06facf46e7a1a5338a4ca2ec9b8441c44c405.zip Ninja-51f06facf46e7a1a5338a4ca2ec9b8441c44c405.tar.gz Ninja-51f06facf46e7a1a5338a4ca2ec9b8441c44c405.tar.bz2 |
Simplify. No behavior change.
-rwxr-xr-x | configure.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.py b/configure.py index 661662f..48da08a 100755 --- a/configure.py +++ b/configure.py @@ -321,8 +321,7 @@ else: proc = subprocess.Popen( [CXX, '-fdiagnostics-color', '-c', '-x', 'c++', '/dev/null'], stdout=open(os.devnull, 'wb'), stderr=subprocess.STDOUT) - proc.wait() - if proc.returncode == 0: + if proc.wait() == 0: cflags += ['-fdiagnostics-color'] except: pass |