Browse Source

build: gcc version detection on openSUSE Tumbleweed

PR-URL: https://github.com/joyent/node/pull/25671
Reviewed-By: Alexis Campailla <alexis@janeasystems.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
v0.10
Henrique Aparecido Lavezzo 10 years ago
committed by Alexis Campailla
parent
commit
8564a9f5f7
  1. 5
      configure

5
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):

Loading…
Cancel
Save