We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3766fd commit 6f0d22dCopy full SHA for 6f0d22d
Tools/wasm/emscripten/__main__.py
@@ -167,11 +167,12 @@ def make_build_python(context, working_dir):
167
@subdir(HOST_BUILD_DIR, clean_ok=True)
168
def make_emscripten_libffi(context, working_dir):
169
shutil.rmtree(working_dir / "libffi-3.4.6", ignore_errors=True)
170
- with tempfile.NamedTemporaryFile(suffix=".tar.gz") as tmp_file:
+ with tempfile.NamedTemporaryFile(suffix=".tar.gz", delete_on_close=False) as tmp_file:
171
with urlopen(
172
"https://github.com/libffi/libffi/releases/download/v3.4.6/libffi-3.4.6.tar.gz"
173
) as response:
174
shutil.copyfileobj(response, tmp_file)
175
+ tmp_file.close()
176
shutil.unpack_archive(tmp_file.name, working_dir)
177
call(
178
[EMSCRIPTEN_DIR / "make_libffi.sh"],
0 commit comments