diff options
-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 |