summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrique Aparecido Lavezzo <henrique@aegis.site>2015-07-13 09:48:42 -0300
committerAlexis Campailla <alexis@janeasystems.com>2015-08-11 19:52:24 +0200
commit8395bf38fd1e6d77cf93159d5732b05b3d9c170c (patch)
tree150f38456b58de5d254a9063f4b202f46bbf58ff
parente192f61514cd1500de895cb10128d412f842d7d0 (diff)
downloadnode-orangemocha-opensusegcc.tar.gz
build: gcc version detection on openSUSE Tumbleweedorangemocha-opensusegcc
-rwxr-xr-xconfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index 2722d591f..19b0fe15f 100755
--- a/configure
+++ b/configure
@@ -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):