From 2fcfa8d3eb69d2b4ea3551c861a0f4580148183f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 24 Sep 2021 12:03:51 +0530 Subject: [PATCH] ... --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5ff759115..ef47fd77a 100755 --- a/setup.py +++ b/setup.py @@ -239,7 +239,7 @@ def test_compile( ldflags: Iterable[str] = (), ) -> bool: src = src or 'int main(void) { return 0; }' - with tempfile.NamedTemporaryFile() as f: + with tempfile.NamedTemporaryFile(prefix='kitty-test-compile-') as f: p = subprocess.Popen( [cc] + list(cflags) + ([] if link_also else ['-c']) + ['-x', lang, '-o', f.name, '-'] + [f'-l{x}' for x in libraries] + list(ldflags),