summaryrefslogtreecommitdiffstats
path: root/Makefile.pre.in
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-08-19 06:36:12 (GMT)
committerGitHub <noreply@github.com>2022-08-19 06:36:12 (GMT)
commit6087f491ea1e4c8c115bb02d95e391399c0d6fe7 (patch)
tree725dec15db25a64dd08c31c965a4a38bbb285cd8 /Makefile.pre.in
parent757c383d2465ce87f546f01568ec911bd226a084 (diff)
downloadcpython-6087f491ea1e4c8c115bb02d95e391399c0d6fe7.zip
cpython-6087f491ea1e4c8c115bb02d95e391399c0d6fe7.tar.gz
cpython-6087f491ea1e4c8c115bb02d95e391399c0d6fe7.tar.bz2
gh-95853: WASM: better version and asset handling in scripts (GH-96045)
- support EMSDK tot-upstream and git releases - allow WASM assents for wasm64-emscripten and WASI. This makes single file distributions on WASI easier. - decouple WASM assets from browser builds
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r--Makefile.pre.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in
index ae7735c..414e604 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -803,10 +803,11 @@ $(DLLLIBRARY) libpython$(LDVERSION).dll.a: $(LIBRARY_OBJS)
# wasm assets directory is relative to current build dir, e.g. "./usr/local".
# --preload-file turns a relative asset path into an absolute path.
+.PHONY: wasm_stdlib
+wasm_stdlib: $(WASM_STDLIB)
$(WASM_STDLIB): $(srcdir)/Lib/*.py $(srcdir)/Lib/*/*.py \
$(srcdir)/Tools/wasm/wasm_assets.py \
- Makefile pybuilddir.txt Modules/Setup.local \
- python.html python.worker.js
+ Makefile pybuilddir.txt Modules/Setup.local
$(PYTHON_FOR_BUILD) $(srcdir)/Tools/wasm/wasm_assets.py \
--buildroot . --prefix $(prefix)