Skip to content

Commit 8677860

Browse files
committed
build: Don't set gcc_version for Windows
1 parent afa5779 commit 8677860

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def configure_node(o):
342342
cc_version, is_clang = compiler_version()
343343
o['variables']['clang'] = 1 if is_clang else 0
344344

345-
if not is_clang:
345+
if not is_clang and cc_version != 0:
346346
o['variables']['gcc_version'] = 10 * cc_version[0] + cc_version[1]
347347

348348
# clang has always supported -fvisibility=hidden, right?

0 commit comments

Comments
 (0)