Skip to content

Commit 466223d

Browse files
authored
Merge pull request #15 from tiran/with-freeze
Use new --with-freeze-module and --with-build-python options
2 parents 06d2caf + 7f69833 commit 466223d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

build-python-host-emscripten.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@ shopt -s extglob
55
mkdir -p cpython/builddir/host
66
mkdir -p cpython/builddir/usr/local
77

8-
export PYTHON_FOR_BUILD="$(pwd)/cpython/builddir/build/python"
9-
108
# install emcc ports so configure is able to detect the dependencies
119
embuilder build zlib bzip2
1210

1311
pushd cpython/builddir/host
1412
cp ../../../config.site-wasm config.site-wasm
15-
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)
13+
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
1614
ln -sfr Modules/Setup.stdlib Modules/Setup.local
17-
export FREEZE_MODULE=../build/Programs/_freeze_module
18-
emmake make CROSS_COMPILE=yes FREEZE_MODULE=../build/Programs/_freeze_module PYTHON_FOR_BUILD=../build/python _PYTHON_HOST_PLATFORM=wasm32-unknown-emscripten -j$(nproc)
15+
emmake make -j$(nproc)
1916
make altinstall prefix=../usr/local
2017
pushd ../usr/local
2118
# not needed, as the binary is already loaded by the .html

0 commit comments

Comments
 (0)