Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions build-python-host-emscripten.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@ shopt -s extglob
mkdir -p cpython/builddir/host
mkdir -p cpython/builddir/usr/local

export PYTHON_FOR_BUILD="$(pwd)/cpython/builddir/build/python"

# install emcc ports so configure is able to detect the dependencies
embuilder build zlib bzip2

pushd cpython/builddir/host
cp ../../../config.site-wasm config.site-wasm
CONFIG_SITE=config.site-wasm READELF=true ZLIB_LIBS="-s USE_ZLIB" BZIP2_LIBS="-s USE_BZIP2" emconfigure ../../configure -C --without-pymalloc --enable-big-digits=30 --with-pydebug --with-suffix=.wasm --with-ensurepip=no --disable-ipv6 --host=wasm32-unknown-emscripten --build=$(../../config.guess)
CONFIG_SITE=config.site-wasm READELF=true ZLIB_LIBS="-s USE_ZLIB" BZIP2_LIBS="-s USE_BZIP2" emconfigure ../../configure -C --without-pymalloc --enable-big-digits=30 --with-pydebug --with-ensurepip=no --disable-ipv6 --host=wasm32-unknown-emscripten --build=$(../../config.guess) --with-build-python=$(pwd)/../build/python --with-freeze-module=$(pwd)/../build/Programs/_freeze_module
ln -sfr Modules/Setup.stdlib Modules/Setup.local
export FREEZE_MODULE=../build/Programs/_freeze_module
emmake make CROSS_COMPILE=yes FREEZE_MODULE=../build/Programs/_freeze_module PYTHON_FOR_BUILD=../build/python _PYTHON_HOST_PLATFORM=wasm32-unknown-emscripten -j$(nproc)
emmake make -j$(nproc)
make altinstall prefix=../usr/local
pushd ../usr/local
# not needed, as the binary is already loaded by the .html
Expand Down