tools: fix return value of try_check_compiler · nodejs/node@8d28236

Original file line numberDiff line numberDiff line change

@@ -1113,7 +1113,7 @@ def try_check_compiler(cc, lang):

11131113

proc = subprocess.Popen(shlex.split(cc) + ['-E', '-P', '-x', lang, '-'],

11141114

stdin=subprocess.PIPE, stdout=subprocess.PIPE)

11151115

except OSError:

1116-

return (False, False, '', '')

1116+

return (False, False, '', '', False)

11171117
11181118

with proc:

11191119

proc.stdin.write(b'__clang__ __GNUC__ __GNUC_MINOR__ __GNUC_PATCHLEVEL__ '