Skip to content

Commit

Permalink
build: gcc version detection on openSUSE Tumbleweed
Browse files Browse the repository at this point in the history
PR-URL: nodejs/node-v0.x-archive#25671
Reviewed-By: Alexis Campailla <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
  • Loading branch information
Henrique Aparecido Lavezzo authored and orangemocha committed Aug 11, 2015
1 parent e192f61 commit 8564a9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 8564a9f

Please sign in to comment.