Skip to content

Commit 9fef69b

Browse files
committed
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
1 parent 0f2246b commit 9fef69b

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, working_dir):
417+
make_emscripten_libffi(context, working_dir)
418+
make_mpdec(context, working_dir)
419+
420+
416421
@subdir("host_dir", clean_ok=True)
417422
def configure_emscripten_python(context, working_dir):
418423
"""Configure the emscripten/host build."""
@@ -649,6 +654,11 @@ def main():
649654
help="Clone libffi repo, configure and build it for emscripten",
650655
)
651656

657+
make_dependencies_cmd = subcommands.add_parser(
658+
"make-dependencies",
659+
help="Build all static library dependencies",
660+
)
661+
652662
make_build = subcommands.add_parser(
653663
"make-build-python", help="Run `make` for the build Python"
654664
)
@@ -698,6 +708,7 @@ def main():
698708
configure_build,
699709
make_libffi_cmd,
700710
make_mpdec_cmd,
711+
make_dependencies_cmd,
701712
make_build,
702713
configure_host,
703714
make_host,
@@ -765,6 +776,7 @@ def main():
765776
"install-emscripten": install_emscripten,
766777
"make-libffi": make_emscripten_libffi,
767778
"make-mpdec": make_mpdec,
779+
"make-dependencies": make_dependencies,
768780
"configure-build-python": configure_build_python,
769781
"make-build-python": make_build_python,
770782
"configure-host": configure_emscripten_python,

0 commit comments

Comments
 (0)