diff options
author | Henrique Aparecido Lavezzo <henrique@aegis.site> | 2015-07-13 09:48:42 -0300 |
---|---|---|
committer | Alexis Campailla <alexis@janeasystems.com> | 2015-08-11 19:52:24 +0200 |
commit | 8395bf38fd1e6d77cf93159d5732b05b3d9c170c (patch) | |
tree | 150f38456b58de5d254a9063f4b202f46bbf58ff | |
parent | e192f61514cd1500de895cb10128d412f842d7d0 (diff) | |
download | node-orangemocha-opensusegcc.tar.gz |
build: gcc version detection on openSUSE Tumbleweedorangemocha-opensusegcc
-rwxr-xr-x | configure | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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): |