Skip to content

Commit 3815d1a

Browse files
committed
3.1.50.1bi-pre
1 parent e1d2c46 commit 3815d1a

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

scripts/cpython-build-emsdk.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,10 @@ END
187187
pushd $ROOT/src/cpython${PYBUILD}
188188
# fix double linking
189189
sed -i 's| -lcrypto||g' Makefile.pre.in
190-
sed -i 's|#error|//#error|g' /opt/python-wasm-sdk/src/Python-3.11.6/Include/pyport.h
190+
191+
# REALLY FIXME: appeared only after 3.1.49bi
192+
sed -i 's|#error|//#error|g' $ROOT/src/cpython${PYBUILD}/Include/pyport.h
193+
191194
# please let compiler/user decide what to do with wasm CPU.
192195
sed -i 's|-sWASM_BIGINT||g' configure
193196
sed -i 's|-sWASM_BIGINT||g' configure.ac

scripts/emsdk-fetch.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,6 @@ MVP=\${MVP:true}
190190
WASM_PURE=\${WASM_PURE:true}
191191
192192
193-
194-
195193
if \$MVP
196194
then
197195
@@ -208,14 +206,14 @@ then
208206
#WASMOPTS="-fno-wasm-exceptions -sSUPPORT_LONGJMP=emscripten"
209207
#CPU="-mnontrapping-fptoint -mno-reference-types -mno-sign-ext -m32"
210208
211-
CPU="-sSUPPORT_LONGJMP=emscripten -mnontrapping-fptoint -mno-reference-types -mno-sign-ext -m32"
209+
CPU="-D_FILE_OFFSET_BITS=64 -sSUPPORT_LONGJMP=emscripten -mnontrapping-fptoint -mno-reference-types -mno-sign-ext -m32"
212210
213211
else
214-
CPU="-mcpu=bleeding-edge -m64"
212+
CPU="-D_FILE_OFFSET_BITS=64 -mcpu=bleeding-edge -m64"
215213
fi
216214
217-
# quick hack until 3.1.47
218-
WASMOPTS="$WASM_EXTRA \$WASMOPTS"
215+
# try to keep 32 but with 64 iface (bitint)
216+
WASMEXTRA="$WASM_EXTRA \$WASMOPTS"
219217
220218
221219
LINKING=\${LINKING:-false}
@@ -384,7 +382,7 @@ done
384382
if \$IS_SHARED
385383
then
386384
# always pass CPU opts when linking
387-
$EMSDK_PYTHON -E \$0.py \$SHARED $COPTS \$CPU \$LDFLAGS -sSIDE_MODULE -gsource-map --source-map-base / "\$@" \$COMMON
385+
$EMSDK_PYTHON -E \$0.py \$SHARED $COPTS \$CPU \$WASM_EXTRA \$LDFLAGS -sSIDE_MODULE -gsource-map --source-map-base / "\$@" \$COMMON
388386
if \$MVP
389387
then
390388
if \$WASM_PURE

0 commit comments

Comments
 (0)