diff options
Diffstat (limited to 'security/nss/coreconf/werror.py')
-rw-r--r-- | security/nss/coreconf/werror.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/security/nss/coreconf/werror.py b/security/nss/coreconf/werror.py index a37fad95f7..0d3843f64e 100644 --- a/security/nss/coreconf/werror.py +++ b/security/nss/coreconf/werror.py @@ -7,7 +7,8 @@ def main(): cc = os.environ.get('CC', 'cc') sink = open(os.devnull, 'wb') try: - cc_is_clang = 'clang' in subprocess.check_output([cc, '--version'], stderr=sink) + cc_is_clang = 'clang' in subprocess.check_output( + [cc, '--version'], universal_newlines=True, stderr=sink) except OSError: # We probably just don't have CC/cc. return @@ -25,6 +26,7 @@ def main(): try: v = subprocess.check_output([cc, '-dumpversion'], stderr=sink) v = v.strip(' \r\n').split('.') + v = list(map(int, v)) if v[0] < 4 or (v[0] == 4 and v[1] < 8): # gcc 4.8 minimum return False |