From 8564a9f5f75ad9069c0a1fb6a90ccadc83e0067b Mon Sep 17 00:00:00 2001 From: Henrique Aparecido Lavezzo Date: Mon, 13 Jul 2015 09:48:42 -0300 Subject: [PATCH] build: gcc version detection on openSUSE Tumbleweed PR-URL: https://github.com/joyent/node/pull/25671 Reviewed-By: Alexis Campailla Reviewed-By: Sakthipriyan Vairamani --- configure | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 2722d591f8..19b0fe15f0 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):