mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-01-09 15:08:06 -05:00
build: gcc version detection on openSUSE Tumbleweed
This commit is contained in:
committed by
Alexis Campailla
parent
e192f61514
commit
8395bf38fd
5
configure
vendored
5
configure
vendored
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user