build: Don't set gcc_version for Windows
authorisaacs <i@izs.me>
Wed, 15 Aug 2012 18:28:52 +0000 (11:28 -0700)
committerisaacs <i@izs.me>
Wed, 15 Aug 2012 18:29:34 +0000 (11:29 -0700)
configure

index 5304730..a801b65 100755 (executable)
--- a/configure
+++ b/configure
@@ -342,7 +342,7 @@ def configure_node(o):
   cc_version, is_clang = compiler_version()
   o['variables']['clang'] = 1 if is_clang else 0
 
-  if not is_clang:
+  if not is_clang and cc_version != 0:
     o['variables']['gcc_version'] = 10 * cc_version[0] + cc_version[1]
 
   # clang has always supported -fvisibility=hidden, right?