Skip to content

Commit 6a84361

Browse files
[3.14] gh-145177: Add make-dependencies command to emscripten build script (GH-146158) (#146184)
Adds a standalone target for building all dependencies so that the buildbot script is independent of a specific dependency list. (cherry picked from commit db11623) Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
1 parent 0a9f397 commit 6a84361

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Platforms/emscripten/__main__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,11 @@ def make_mpdec(context, working_dir):
413413
write_library_config(prefix, "mpdec", mpdec_config, context.quiet)
414414

415415

416+
def make_dependencies(context):
417+
make_emscripten_libffi(context)
418+
make_mpdec(context)
419+
420+
416421
def calculate_node_path():
417422
node_version = os.environ.get("PYTHON_NODE_VERSION", None)
418423
if node_version is None:
@@ -665,6 +670,11 @@ def main():
665670
help="Clone libffi repo, configure and build it for emscripten",
666671
)
667672

673+
make_dependencies_cmd = subcommands.add_parser(
674+
"make-dependencies",
675+
help="Build all static library dependencies",
676+
)
677+
668678
make_build = subcommands.add_parser(
669679
"make-build-python", help="Run `make` for the build Python"
670680
)
@@ -714,6 +724,7 @@ def main():
714724
configure_build,
715725
make_libffi_cmd,
716726
make_mpdec_cmd,
727+
make_dependencies_cmd,
717728
make_build,
718729
configure_host,
719730
make_host,
@@ -781,6 +792,7 @@ def main():
781792
"install-emscripten": install_emscripten,
782793
"make-libffi": make_emscripten_libffi,
783794
"make-mpdec": make_mpdec,
795+
"make-dependencies": make_dependencies,
784796
"configure-build-python": configure_build_python,
785797
"make-build-python": make_build_python,
786798
"configure-host": configure_emscripten_python,

0 commit comments

Comments
 (0)