diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 762e7c569..56a0ab2b8 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -796,7 +796,7 @@ class Compiler: mlog.debug('Cached compiler stdout:\n', p.stdo) mlog.debug('Cached compiler stderr:\n', p.stde) yield p - raise StopIteration + return try: with tempfile.TemporaryDirectory() as tmpdirname: if isinstance(code, str):