This commit is contained in:
Kovid Goyal 2022-01-05 20:14:23 +05:30
parent 2a58af2be9
commit 420a1b018a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -231,7 +231,7 @@ def test_compile(
with open(os.path.join(tdir, f'source.{source_ext}'), 'w', encoding='utf-8') as srcf:
print(src, file=srcf)
return subprocess.Popen(
cc + list(cflags) + ([] if link_also else ['-c']) +
cc + ['-Werror=implicit-function-declaration'] + list(cflags) + ([] if link_also else ['-c']) +
['-o', os.path.join(tdir, 'source.output'), srcf.name] +
[f'-l{x}' for x in libraries] + list(ldflags),
stdout=subprocess.DEVNULL, stdin=subprocess.DEVNULL,