Skip to content

Commit d6c9f17

Browse files
theanarkhmarco-ippolito
authored andcommitted
tools: fix return value of try_check_compiler
PR-URL: #59434 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent e0457a4 commit d6c9f17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ def try_check_compiler(cc, lang):
10271027
proc = subprocess.Popen(shlex.split(cc) + ['-E', '-P', '-x', lang, '-'],
10281028
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
10291029
except OSError:
1030-
return (False, False, '', '')
1030+
return (False, False, '', '', False)
10311031

10321032
with proc:
10331033
proc.stdin.write(b'__clang__ __GNUC__ __GNUC_MINOR__ __GNUC_PATCHLEVEL__ '

0 commit comments

Comments
 (0)