From 1f7c246378ac28e6fe0f795ce46937d3dff2308e Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Thu, 11 Oct 2018 10:06:27 +0200 Subject: [PATCH] Re-create broken symlinks --- pyodide_build/pywasmcross.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyodide_build/pywasmcross.py b/pyodide_build/pywasmcross.py index da9f94949..c7bb21388 100755 --- a/pyodide_build/pywasmcross.py +++ b/pyodide_build/pywasmcross.py @@ -77,6 +77,9 @@ def make_symlinks(env): exec_path = Path(__file__).resolve() for symlink in symlinks: symlink_path = ROOTDIR / symlink + if os.path.lexists(symlink_path) and not symlink_path.exists(): + # remove broken symlink so it can be re-created + symlink_path.unlink() if not symlink_path.exists(): symlink_path.symlink_to(exec_path) if symlink == 'c++':