From 9fef69bdf34f76e7ee057626c83aadc15c9bb80f Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Thu, 19 Mar 2026 10:16:15 +0100 Subject: [PATCH] gh-145177: Add make-dependencies command to emscripten build script So that we don't have to update the buildbot when we add a dependency --- Platforms/emscripten/__main__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Platforms/emscripten/__main__.py b/Platforms/emscripten/__main__.py index 78825a52fed29b..2f6286ff2d8509 100644 --- a/Platforms/emscripten/__main__.py +++ b/Platforms/emscripten/__main__.py @@ -413,6 +413,11 @@ def make_mpdec(context, working_dir): write_library_config(prefix, "mpdec", mpdec_config, context.quiet) +def make_dependencies(context, working_dir): + make_emscripten_libffi(context, working_dir) + make_mpdec(context, working_dir) + + @subdir("host_dir", clean_ok=True) def configure_emscripten_python(context, working_dir): """Configure the emscripten/host build.""" @@ -649,6 +654,11 @@ def main(): help="Clone libffi repo, configure and build it for emscripten", ) + make_dependencies_cmd = subcommands.add_parser( + "make-dependencies", + help="Build all static library dependencies", + ) + make_build = subcommands.add_parser( "make-build-python", help="Run `make` for the build Python" ) @@ -698,6 +708,7 @@ def main(): configure_build, make_libffi_cmd, make_mpdec_cmd, + make_dependencies_cmd, make_build, configure_host, make_host, @@ -765,6 +776,7 @@ def main(): "install-emscripten": install_emscripten, "make-libffi": make_emscripten_libffi, "make-mpdec": make_mpdec, + "make-dependencies": make_dependencies, "configure-build-python": configure_build_python, "make-build-python": make_build_python, "configure-host": configure_emscripten_python,