From 3b62f6729a930b81c3110962f31fb871a5691612 Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 30 Oct 2012 03:00:12 +0000 Subject: The GCC version check was previously used for -fpermissive but now we either compile (4.7+) or do not (anything prior to 4.7), so it's not too useful. Remove it. --- configure.py | 39 --------------------------------------- 1 file changed, 39 deletions(-) (limited to 'configure.py') diff --git a/configure.py b/configure.py index 5f39ec9e0..c17f5db07 100755 --- a/configure.py +++ b/configure.py @@ -1767,45 +1767,6 @@ def main(argv = None): cc = ccinfo[options.compiler] - # Kind of a hack... - if options.compiler == 'gcc': - - def get_gcc_version(gcc_bin): - try: - gcc_proc = subprocess.Popen( - gcc_bin.split(' ') + ['-dumpversion'], - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - universal_newlines=True) - - (stdout, stderr) = gcc_proc.communicate() - - if gcc_proc.returncode != 0: - logging.warning("GCC returned non-zero result %s" % (stderr)) - return None - - gcc_version = stdout.strip() - - logging.info('Detected gcc version %s' % (gcc_version)) - - (gcc_major, gcc_minor, gcc_patch) = map(int, gcc_version.split('.')) - - if gcc_major == 4 and gcc_minor < 7: - logging.warning('GCC 4.7.0 or higher is required') - - return gcc_version - except OSError: - logging.warning('Could not execute %s for version check' % (gcc_bin)) - return None - - gcc_version = get_gcc_version(options.compiler_binary or cc.binary_name) - - if gcc_version: - versions_without_cpp0x = '(4\.[01234]\.)|(3\.[0-4]\.)|(2\.95\.[0-4])' - - if re.search(versions_without_cpp0x, gcc_version): - logging.info('This GCC is too old to compile C++0x') - if options.with_visibility is None: options.with_visibility = True -- cgit v1.2.3