File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 187
187
pushd $ROOT /src/cpython${PYBUILD}
188
188
# fix double linking
189
189
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
+
191
194
# please let compiler/user decide what to do with wasm CPU.
192
195
sed -i ' s|-sWASM_BIGINT||g' configure
193
196
sed -i ' s|-sWASM_BIGINT||g' configure.ac
Original file line number Diff line number Diff line change @@ -190,8 +190,6 @@ MVP=\${MVP:true}
190
190
WASM_PURE=\$ {WASM_PURE:true}
191
191
192
192
193
-
194
-
195
193
if \$ MVP
196
194
then
197
195
@@ -208,14 +206,14 @@ then
208
206
#WASMOPTS="-fno-wasm-exceptions -sSUPPORT_LONGJMP=emscripten"
209
207
#CPU="-mnontrapping-fptoint -mno-reference-types -mno-sign-ext -m32"
210
208
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"
212
210
213
211
else
214
- CPU="-mcpu=bleeding-edge -m64"
212
+ CPU="-D_FILE_OFFSET_BITS=64 - mcpu=bleeding-edge -m64"
215
213
fi
216
214
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"
219
217
220
218
221
219
LINKING=\$ {LINKING:-false}
384
382
if \$ IS_SHARED
385
383
then
386
384
# 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
388
386
if \$ MVP
389
387
then
390
388
if \$ WASM_PURE
You can’t perform that action at this time.
0 commit comments