From 7cf73c10acabc2ad064d1402e9ef2d8013a7cafc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 18 Sep 2021 11:16:56 +0530 Subject: [PATCH] clang needs a newline at the end of src --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e3a60aeeb..6abcd2ada 100755 --- a/setup.py +++ b/setup.py @@ -246,7 +246,7 @@ def test_compile( stdin = p.stdin assert stdin is not None try: - stdin.write(src.encode('utf-8')) + stdin.write((src + '\n').encode('utf-8')) stdin.close() except BrokenPipeError: return False