build: gcc version detection on openSUSE Tumbleweed

This commit is contained in:
Henrique Aparecido Lavezzo
2015-07-13 09:48:42 -03:00
committed by Alexis Campailla
parent e192f61514
commit 8395bf38fd

5
configure vendored
View File

@@ -495,7 +495,10 @@ def configure_node(o):
o['variables']['clang'] = 1 if is_clang else 0
if not is_clang and cc_version != 0:
o['variables']['gcc_version'] = 10 * cc_version[0] + cc_version[1]
try:
o['variables']['gcc_version'] = 10 * cc_version[0] + cc_version[1]
except IndexError:
o['variables']['gcc_version'] = 10 * cc_version[0]
# clang has always supported -fvisibility=hidden, right?
if not is_clang and cc_version < (4,0,0):